Go to the first, previous, next, last section, table of contents.


tanh

Syntax

#include <math.h>

double tanh(double x);

Description

This function computes the hyperbolic tangent of x.

Return Value

The hyperbolic tangent of x. If x is either a positive or a negative infinity, the result is unity with the same sign as x, and errno is not changed. If x is NaN, the return value is NaN and errno is set to EDOM.

Portability

ANSI, POSIX


Go to the first, previous, next, last section, table of contents.