The OpenD Programming Language

std.math.trigonometry

This is a submodule of std.math.

It contains several trigonometric functions.

Members

Functions

acos
real acos(real x)
double acos(double x)
float acos(float x)

Calculates the arc cosine of x, returning a value ranging from 0 to π.

acosh
real acosh(real x)
double acosh(double x)
float acosh(float x)

Calculates the inverse hyperbolic cosine of x.

asin
real asin(real x)
double asin(double x)
float asin(float x)

Calculates the arc sine of x, returning a value ranging from -π/2 to π/2.

asinh
real asinh(real x)
double asinh(double x)
float asinh(float x)

Calculates the inverse hyperbolic sine of x.

atan
real atan(real x)
double atan(double x)
float atan(float x)

Calculates the arc tangent of x, returning a value ranging from -π/2 to π/2.

atan2
real atan2(real y, real x)
double atan2(double y, double x)
float atan2(float y, float x)

Calculates the arc tangent of y / x, returning a value ranging from -π to π.

atanh
real atanh(real x)
double atanh(double x)
float atanh(float x)

Calculates the inverse hyperbolic tangent of x, returning a value from ranging from -1 to 1.

cos
real cos(real x)
double cos(double x)
float cos(float x)

Returns cosine of x. x is in radians.

cosh
real cosh(real x)
double cosh(double x)
float cosh(float x)

Calculates the hyperbolic cosine of x.

sin
real sin(real x)
double sin(double x)
float sin(float x)

Returns sine of x. x is in radians.

sinh
real sinh(real x)
double sinh(double x)
float sinh(float x)

Calculates the hyperbolic sine of x.

tan
real tan(real x)
double tan(double x)
float tan(float x)

Returns tangent of x. x is in radians.

tanh
real tanh(real x)
double tanh(double x)
float tanh(float x)

Calculates the hyperbolic tangent of x.

Meta

Authors

Walter Bright, Don Clugston, Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger