std.math.trigonometry

This is a submodule of std.math.

It contains several trigonometric functions.

Functions 46

fnreal cos(real x) @safe pure nothrow @nogcReturns cosine of x. x is in radians.
fndouble cos(double x) @safe pure nothrow @nogcditto
fnfloat cos(float x) @safe pure nothrow @nogcditto
fnreal sin(real x) @safe pure nothrow @nogcReturns en.wikipedia.org/wiki/Sine of x. x is in en.wikipedia.org/wiki/Radian.
fndouble sin(double x) @safe pure nothrow @nogcditto
fnfloat sin(float x) @safe pure nothrow @nogcditto
fnreal tan(real x) @safe pure nothrow @nogcReturns tangent of x. x is in radians.
fndouble tan(double x) @safe pure nothrow @nogcditto
fnfloat tan(float x) @safe pure nothrow @nogcditto
private fnT tanImpl(T)(T x) @safe pure nothrow @nogc
fnreal acos(real x) @safe pure nothrow @nogcCalculates the arc cosine of x, returning a value ranging from 0 to .
fndouble acos(double x) @safe pure nothrow @nogcditto
fnfloat acos(float x) @safe pure nothrow @nogcditto
fnreal asin(real x) @safe pure nothrow @nogcCalculates the arc sine of x, returning a value ranging from -/2 to /2.
fndouble asin(double x) @safe pure nothrow @nogcditto
fnfloat asin(float x) @safe pure nothrow @nogcditto
fnreal atan(real x) @safe pure nothrow @nogcCalculates the arc tangent of x, returning a value ranging from -/2 to /2.
fndouble atan(double x) @safe pure nothrow @nogcditto
fnfloat atan(float x) @safe pure nothrow @nogcditto
private fnT atanImpl(T)(T x) @safe pure nothrow @nogc
fnreal atan2(real y, real x) @trusted pure nothrow @nogcCalculates the arc tangent of y / x, returning a value ranging from - to .
fndouble atan2(double y, double x) @safe pure nothrow @nogcditto
fnfloat atan2(float y, float x) @safe pure nothrow @nogcditto
private fnT atan2Impl(T)(T y, T x) @safe pure nothrow @nogc
fnreal cosh(real x) @safe pure nothrow @nogcCalculates the hyperbolic cosine of x.
fndouble cosh(double x) @safe pure nothrow @nogcditto
fnfloat cosh(float x) @safe pure nothrow @nogcditto
fnreal sinh(real x) @safe pure nothrow @nogcCalculates the hyperbolic sine of x.
fndouble sinh(double x) @safe pure nothrow @nogcditto
fnfloat sinh(float x) @safe pure nothrow @nogcditto
private fnF _sinh(F)(F x)
fnreal tanh(real x) @safe pure nothrow @nogcCalculates the hyperbolic tangent of x.
fndouble tanh(double x) @safe pure nothrow @nogcditto
fnfloat tanh(float x) @safe pure nothrow @nogcditto
private fnF _tanh(F)(F x)
fnreal acosh(real x) @safe pure nothrow @nogcCalculates the inverse hyperbolic cosine of x.
fndouble acosh(double x) @safe pure nothrow @nogcditto
fnfloat acosh(float x) @safe pure nothrow @nogcditto
private fnF _acosh(F)(F x) @safe pure nothrow @nogc
fnreal asinh(real x) @safe pure nothrow @nogcCalculates the inverse hyperbolic sine of x.
fndouble asinh(double x) @safe pure nothrow @nogcditto
fnfloat asinh(float x) @safe pure nothrow @nogcditto
private fnF _asinh(F)(F x)
fnreal atanh(real x) @safe pure nothrow @nogcCalculates the inverse hyperbolic tangent of x, returning a value from ranging from -1 to 1.
fndouble atanh(double x) @safe pure nothrow @nogcditto
fnfloat atanh(float x) @safe pure nothrow @nogcditto