WPILibC++ 2023.4.3
atan.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr T internal::atan_series_order_calc (const T x, const T x_pow, const uint_t order) noexcept
 
template<typename T >
constexpr T internal::atan_series_order (const T x, const T x_pow, const uint_t order, const uint_t max_order) noexcept
 
template<typename T >
constexpr T internal::atan_series_main (const T x) noexcept
 
template<typename T >
constexpr T internal::atan_cf_recur (const T xx, const uint_t depth, const uint_t max_depth) noexcept
 
template<typename T >
constexpr T internal::atan_cf_main (const T x) noexcept
 
template<typename T >
constexpr T internal::atan_begin (const T x) noexcept
 
template<typename T >
constexpr T internal::atan_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > atan (const T x) noexcept
 Compile-time arctangent function. More...
 

Function Documentation

◆ atan()

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

Compile-time arctangent function.

Parameters
xa real-valued input.
Returns
the inverse tangent function using

\[ \text{atan}(x) = \dfrac{x}{1 + \dfrac{x^2}{3 + \dfrac{4x^2}{5 + \dfrac{9x^2}{7 + \ddots}}}} \]