module
tan()Constexpr-friendly alternatives to std::tan.
Functions
- auto tan(half x) -> half constexpr noexcept
- Returns the tangent of a half-precision float.
- auto tan(float x) -> float constexpr noexcept
- Returns the tangent of a float.
- auto tan(double x) -> double constexpr noexcept
- Returns the tangent of a double.
- auto tan(long double x) -> long double constexpr noexcept
- Returns the tangent of a long double.
- auto tan(float128_t x) -> float128_t constexpr noexcept
- Returns the tangent of a float128_t.
- auto tan(_Float16 x) -> _Float16 constexpr noexcept
- Returns the tangent of a _Float16.
-
template <typename T>auto tan(T x) -> double constexpr noexcept
- Returns the tangent of an integer.
Function documentation
half tan(half x) constexpr noexcept
#include <muu/half.h>
Returns the tangent of a half-precision float.
float tan(float x) constexpr noexcept
#include <muu/math.h>
Returns the tangent of a float.
double tan(double x) constexpr noexcept
#include <muu/math.h>
Returns the tangent of a double.
long double tan(long double x) constexpr noexcept
#include <muu/math.h>
Returns the tangent of a long double.
float128_t tan(float128_t x) constexpr noexcept
#include <muu/math.h>
Returns the tangent of a float128_t.
_Float16 tan(_Float16 x) constexpr noexcept
#include <muu/math.h>
Returns the tangent of a _Float16.
#include <muu/math.h>
template <typename T>
double tan(T x) constexpr noexcept
Returns the tangent of an integer.