FastLED 3.10.8
Loading...
Searching...
No Matches

◆ asin_impl_double()

double fl::asin_impl_double ( double value)

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

639 {
640#if FL_MATH_USE_LIBM
641 return ::asin(value);
642#else
643 const double kPiHalf = 1.57079632679489661923;
644 if (value >= 1.0) return kPiHalf;
645 if (value <= -1.0) return -kPiHalf;
646 const double denom = detail::sqrt_newton_<double>(1.0 - value * value);
647 if (denom == 0.0) return value > 0.0 ? kPiHalf : -kPiHalf;
648 return detail::atan_full_<double>(value / denom);
649#endif
650}
F sqrt_newton_(F value) FL_NO_EXCEPT
Definition math.cpp.hpp:233
F atan_full_(F u) FL_NO_EXCEPT
Definition math.cpp.hpp:549
constexpr int type_rank< T >::value

References fl::detail::atan_full_(), FL_NO_EXCEPT, fl::detail::sqrt_newton_(), and type_rank< T >::value.

Referenced by acos_impl_double(), and asin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: