C Reference function cosh()

Usage of cosh():

double cosh(double x);

Parameters:

There is no range limit on the argument.

Return value:

There is no range limit return value.

Source code example of cosh():


	#include<stdio.h>
	#include<math.h>

	#define PI 3.14159265

	main()
	{
		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. You can leave a response, or trackback from your own site. Tweet This! Tweet This! or use to share this post with others.

Leave a Reply: