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

◆ sin_poly_quarterturn_()

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

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

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

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

Referenced by sin_reduce_().

+ Here is the caller graph for this function: