Skip to content

Trigonometry

The sine of x, an angle in radians, or with a unit such as deg.

sin(30 deg) = 0.5

The cosine of x.

cos(60 deg) = 0.5

The tangent of x.

tan(45 deg) = 1

The secant of x, 1/cos(x).

sec(π/3) = 2

The cosecant of x, 1/sin(x).

csc(30 deg) = 2

The cotangent of x, 1/tan(x).

cot(45 deg) = 1

The angle whose sine is x, between −π/2 and π/2.

asin(0.5) = 30 deg

The angle whose cosine is x, between 0 and π.

acos(0.5) = 60 deg

The angle whose tangent is x, between −π/2 and π/2.

atan(1) = 45 deg

The angle of the point (x, y) from the x axis, between −π and π; x and y may have units, the same.

atan2(-1 m, 1 m) = 135 deg

The angle whose cotangent is x, between 0 and π.

acot(1) = 45 deg

The angle whose secant is x.

asec(2) = 60 deg

The angle whose cosecant is x.

acsc(2) = 30 deg

The hyperbolic sine of x.

sinh(1) = 1.175

The hyperbolic cosine of x.

cosh(1) = 1.543

The hyperbolic tangent of x.

tanh(1) = 0.762

The hyperbolic secant of x, 1/cosh(x).

sech(1) = 0.648

The hyperbolic cosecant of x, 1/sinh(x).

csch(1) = 0.851

The hyperbolic cotangent of x, 1/tanh(x).

coth(1) = 1.313

The inverse hyperbolic sine of x.

asinh(1) = 0.881

The inverse hyperbolic cosine of x, for x of 1 or more.

acosh(2) = 1.317

The inverse hyperbolic tangent of x, for x between −1 and 1.

atanh(0.5) = 0.549

The inverse hyperbolic cotangent of x, for x beyond −1 and 1.

acoth(2) = 0.549