Math » atan() module

Constexpr-friendly alternatives to std::atan.

Functions

auto atan(half x) -> half constexpr noexcept
Returns the arc tangent of a half-precision float.
auto atan(float x) -> float constexpr noexcept
Returns the arc tangent of a float.
auto atan(double x) -> double constexpr noexcept
Returns the arc tangent of a double.
auto atan(long double x) -> long double constexpr noexcept
Returns the arc tangent of a long double.
auto atan(float128_t x) -> float128_t constexpr noexcept
Returns the arc tangent of a float128_t.
auto atan(_Float16 x) -> _Float16 constexpr noexcept
Returns the arc tangent of a _Float16.
template <typename T>
auto atan(T x) -> double constexpr noexcept
Returns the arc tangent of an integer.

Function documentation

half atan(half x) constexpr noexcept
#include <muu/half.h>

Returns the arc tangent of a half-precision float.

float atan(float x) constexpr noexcept
#include <muu/math.h>

Returns the arc tangent of a float.

double atan(double x) constexpr noexcept
#include <muu/math.h>

Returns the arc tangent of a double.

long double atan(long double x) constexpr noexcept
#include <muu/math.h>

Returns the arc tangent of a long double.

float128_t atan(float128_t x) constexpr noexcept
#include <muu/math.h>

Returns the arc tangent of a float128_t.

_Float16 atan(_Float16 x) constexpr noexcept
#include <muu/math.h>

Returns the arc tangent of a _Float16.

#include <muu/math.h>
template <typename T>
double atan(T x) constexpr noexcept

Returns the arc tangent of an integer.