Returns the cosh of x.
If x is ±INFINITY, the function returns ±INFINITY.
Example:
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
|