[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


cosh

Compute the hyperbolic cosine.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
double cosh(double x);
float coshf(float);
long double coshl(long double);
Parameters:

Parameters for this function are:

x  
float, double or long double  
value to be computed  

Return:

cosh() returns the hyperbolic cosine of x.

See Also:

"Inlined Intrinsics Option"

"sinh"

"tanh"

cosh() example:
#include <math.h>
#include <stdio.h>

int main(void)
{
	double x = 0.0;

	printf("Hyperbolic cosine of %f is %f.\n",x,cosh(x));

	return 0;
}

Output:
Hyperbolic cosine of 0.000000 is 1.000000.


[ 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