Math » acos() module

Constexpr-friendly alternatives to std::acos.

Functions

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

Function documentation

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

Returns the arc cosine of a half-precision float.

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

Returns the arc cosine of a float.

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

Returns the arc cosine of a double.

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

Returns the arc cosine of a long double.

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

Returns the arc cosine of a float128_t.

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

Returns the arc cosine of a _Float16.

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

Returns the arc cosine of an integer.