MCPcopy Create free account
hub / github.com/FastLED/FastLED / cos_poly_quarterturn_

Function cos_poly_quarterturn_

src/fl/math/math.cpp.hpp:177–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176template <typename F>
177inline F cos_poly_quarterturn_(F x) FL_NOEXCEPT {
178 // cos(x) ≈ 1 - x²/2 + x⁴/24 - x⁶/720
179 const F x2 = x * x;
180 return F(1) - x2 * (F(0.5) - x2 * (F(1.0 / 24.0) - x2 * F(1.0 / 720.0)));
181}
182
183template <typename F>
184inline F sin_reduce_(F x) FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 1

FClass · 0.85

Tested by

no test coverage detected