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