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