std::tan

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       tan( float arg );

double      tan( double arg );

long double tan( long double arg );

Computes tangent of arg

[edit] Parameters

arg - floating point value representing angle in radians

[edit] Return value

tangent of arg.

Domain error occurs if arg is infinite. NAN is returned in that case.

[edit] See also

sin
computes sine (sin(x))
(function)
cos
computes cosine (cos(x))
(function)
atan
computes arc tangent (arctan(x))
(function)