WPILibC++ 2023.4.3-108-ge5452e3
asin.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr T internal::asin_compute (const T x) noexcept
 
template<typename T >
constexpr T internal::asin_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > asin (const T x) noexcept
 Compile-time arcsine function. More...
 

Function Documentation

◆ asin()

template<typename T >
constexpr return_t< T > asin ( const T  x)
constexprnoexcept

Compile-time arcsine function.

Parameters
xa real-valued input, where \( x \in [-1,1] \).
Returns
the inverse sine function using

\[ \text{asin}(x) = \text{atan} \left( \frac{x}{\sqrt{1-x^2}} \right) \]