FastLED 3.9.15
Loading...
Searching...
No Matches

◆ asin_impl_double()

double fl::asin_impl_double ( double value)

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

557 {
558#if FL_MATH_USE_LIBM
559 return ::asin(value);
560#else
561 const double kPiHalf = 1.57079632679489661923;
562 if (value >= 1.0) return kPiHalf;
563 if (value <= -1.0) return -kPiHalf;
564 const double denom = detail::sqrt_newton_<double>(1.0 - value * value);
565 if (denom == 0.0) return value > 0.0 ? kPiHalf : -kPiHalf;
566 return detail::atan_full_<double>(value / denom);
567#endif
568}
F atan_full_(F u) FL_NOEXCEPT
Definition math.cpp.hpp:467
F sqrt_newton_(F value) FL_NOEXCEPT
Definition math.cpp.hpp:151
constexpr int type_rank< T >::value

References fl::detail::atan_full_(), 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: