FastLED 3.10.6
Loading...
Searching...
No Matches

◆ atan_poly_unit_()

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

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

535 {
536 // Polynomial approximation of atan on [-1, 1].
537 // Coefficients from Padé-style minimax fit; max abs error ~1.5e-3.
538 const F u2 = u * u;
539 return u * (F(0.99997726) +
540 u2 * (F(-0.33262347) +
541 u2 * (F(0.19354346) +
542 u2 * (F(-0.11643287) +
543 u2 * (F(0.05265332) +
544 u2 * F(-0.01172120))))));
545}

References fl::FL_NO_EXCEPT.

Referenced by atan_full_().

+ Here is the caller graph for this function: