Compute the hyperbolic tangent.
Compatibility:This function is compatible with the following targets:
|
|
#include <math.h>
double tanh(double x);
float tanhf(float x);
long double tanhl(long double x);Parameters:
Parameters for this function are:
tanh() returns the hyperbolic tangent of x.
#include <math.h>
#include <stdio.h>
int main(void)
{
double x = 0.5;
printf("The hyperbolic tangent of %f is %f.\n",x, tanh(x));
return 0;
}
Output:
The hyperbolic tangent of 0.500000 is 0.462117.
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000