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

◆ sin_poly_quarterturn_()

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

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

170 {
171 // sin(x) ≈ x - x³/6 + x⁵/120 - x⁷/5040
172 const F x2 = x * x;
173 return x * (F(1) - x2 * (F(1.0 / 6.0) - x2 * (F(1.0 / 120.0) - x2 * F(1.0 / 5040.0))));
174}

References FL_NOEXCEPT, and fl::x.

Referenced by sin_reduce_().

+ Here is the caller graph for this function: