Go to the source code of this file.
|
template<typename T > |
constexpr T | internal::sin_compute (const T x) noexcept |
|
template<typename T > |
constexpr T | internal::sin_check (const T x) noexcept |
|
template<typename T > |
constexpr return_t< T > | sin (const T x) noexcept |
| Compile-time sine function. More...
|
|
◆ sin()
template<typename T >
constexpr return_t< T > sin |
( |
const T |
x | ) |
|
|
constexprnoexcept |
Compile-time sine function.
- Parameters
-
- Returns
- the sine function using
\[ \sin(x) = \frac{2\tan(x/2)}{1+\tan^2(x/2)} \]