D Documentation  
cosh
real cosh(real x)

Returns the cosh of x.

If x is ±INFINITY, the function returns ±INFINITY.

Example:
//don't forget to import std.stdio and std.math :-)

writefln("cosh(0)         is %f",cosh(0));
writefln("cosh(1)         is %f",cosh(1));
writefln("cosh(nan)       is %f",cosh(float.nan));
writefln("cosh(-INF)      is %f",cosh(-float.infinity));

Output:
cosh(0)         is 1.000000
cosh(1)         is 1.543081
cosh(nan)       is nan
cosh(-INF)      is inf

See also:
std.math.cos
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.