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

Function tan_impl_double

src/fl/math/math.cpp.hpp:598–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598double tan_impl_double(double value) {
599#if FL_MATH_USE_LIBM
600 return ::tan(value);
601#else
602 const double c = detail::cos_reduce_<double>(value);
603 if (c == 0.0) return 0.0;
604 return detail::sin_reduce_<double>(value) / c;
605#endif
606}
607
608// Load exponent implementations (ldexp): value * 2^exp.
609//

Callers 1

tanFunction · 0.85

Calls 1

tanFunction · 0.85

Tested by

no test coverage detected