OAR

RTEMS GNU Tools On-Line Library


tanh

PREV UP NEXT Bookshelf

1.29: tanh, tanhf---hyperbolic tangent

Synopsis

#include <math.h>
double tanh(double x);
float tanhf(float x);

Description

tanh computes the hyperbolic tangent of the argument x. Angles are specified in radians.

tanh(x) is defined as

 sinh(x)/cosh(x)

tanhf is identical, save that it takes and returns float values.


Returns
The hyperbolic tangent of x is returned.


Portability
tanh is ANSI C. tanhf is an extension.



PREV UP NEXT Bookshelf

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.