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

Function tan_impl_float

src/fl/math/math.cpp.hpp:588–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588float tan_impl_float(float value) {
589#if FL_MATH_USE_LIBM
590 return ::tanf(value);
591#else
592 const float c = detail::cos_reduce_<float>(value);
593 if (c == 0.0f) return 0.0f;
594 return detail::sin_reduce_<float>(value) / c;
595#endif
596}
597
598double tan_impl_double(double value) {
599#if FL_MATH_USE_LIBM

Callers 2

tanfFunction · 0.85
tanFunction · 0.85

Calls 1

tanfFunction · 0.85

Tested by

no test coverage detected