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

◆ sin_poly_quarterturn_()

template<typename F>
F fl::detail::sin_poly_quarterturn_ ( F x)
inline

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

252 {
253 // sin(x) ≈ x - x³/6 + x⁵/120 - x⁷/5040
254 const F x2 = x * x;
255 return x * (F(1) - x2 * (F(1.0 / 6.0) - x2 * (F(1.0 / 120.0) - x2 * F(1.0 / 5040.0))));
256}

References fl::FL_NO_EXCEPT, and fl::x.

Referenced by sin_reduce_().

+ Here is the caller graph for this function: