| 175 | |
| 176 | template <typename F> |
| 177 | inline 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 | |
| 183 | template <typename F> |
| 184 | inline F sin_reduce_(F x) FL_NOEXCEPT { |