<< Previous | Next >>

tan

float tan ( float x );

Description

Compute the tangent of the argument.

NOTE The Dynamic C functions deg and rad convert radians and degrees.

Parameters

x
Angle in radians.

Return value

Returns the tangent of x, where -8 ×  PI x +8 ×  PI. If x is out of bounds, the function returns 0 and signals a domain error. If the value of x is too close to a multiple of 90° (PI/2) the function returns INF and signals a range error.

Library

MATH.LIB

See also

atan, cos, sin, tanh


Dynamic C Functions << Previous | Next >> rabbit.com