INtime SDK Help
tan, tanh (ANSI, IEEE)

tan calculates the tangent and tanh calculates the hyperbolic tangent of the number.

#include <math.h>

double tan (double x);
double tanh (double x);

Parameters

x
Angle to calculate in radians.

Return Values

tan

Returns the tangent of x.

Returns a PLOSS error and sets errno to ERANGE if x is large and a partial loss of significance in the result may occur.

Returns 0, prints a TLOSS error message to stderr, and sets errno to ERANGE if x is so large that significance is totally lost.

tanh

Returns the hyperbolic tangent of x.

No error return for tanh.

These functions do not return standard ANSI domain or range errors.

Requirements

Versions Defined in Include Link to
INtme 3.0 intime/rt/include/math.h math.h clib.lib

See Also

acos, asin, atan, cos, sin