Elementary.LogCosh Method

Returns the logarithm of the hyperbolic cosine of the specified value.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.6.0
C#
public static double LogCosh(
	double x
)

Parameters

x  Double
A real number.

Return Value

Double
The value of log(cosh(x)).

Remarks

This method evaluates log(cosh(x)) using a numerically stable form that avoids overflow for large absolute values of x.

See Also