commands → cosh

cosh(x)

The cosh command computes the hyperbolic cosine of x where x is in radians. If x is a floating point number then a floating point result is computed, otherwise the result is an exact symbolic value.

Examples

# hardware floating point
cosh(1.0);
	1.54308063481524

# symbolic
cosh(1);
	cosh(1)

Algorithm

To compute cosh(x) in extended precision we compute its power series.

References

Gullberg, Jan. Mathematics: From the Birth of Numbers. Norton, 1996.