FastLED 3.9.15
Loading...
Searching...
No Matches

◆ atan_poly_unit_()

template<typename F>
F fl::detail::atan_poly_unit_ ( F u)
inline

Definition at line 454 of file math.cpp.hpp.

454 {
455 // Polynomial approximation of atan on [-1, 1].
456 // Coefficients from Padé-style minimax fit; max abs error ~1.5e-3.
457 const F u2 = u * u;
458 return u * (F(0.99997726) +
459 u2 * (F(-0.33262347) +
460 u2 * (F(0.19354346) +
461 u2 * (F(-0.11643287) +
462 u2 * (F(0.05265332) +
463 u2 * F(-0.01172120))))));
464}

References FL_NOEXCEPT.

Referenced by atan_full_().

+ Here is the caller graph for this function: