FastLED 3.10.8
Loading...
Searching...
No Matches

◆ atan_poly_unit_()

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

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

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

References fl::FL_NO_EXCEPT.

Referenced by atan_full_().

+ Here is the caller graph for this function: