C Reference function cosh()

Usage of cosh():

double cosh(double x);


There is no range limit on the argument.

Return value:

There is no range limit return value.

Source code example of cosh():


	#define PI 3.14159265

		double input, output;
		input = log(10.0);
		output = cosh (input);
		printf ("hyperbolic cosine of %lf is %lf\n", input, output);
		return 0;

Output of the cosh example program above:

	hyperbolic cosine of 2.302585 is 5.050000

This entry was posted in C Reference math.h Functions. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. Tweet This! Tweet This! or use to share this post with others.

Comments are closed.