Cotanh v0.1.0

Source
Returns the hyperbolic cotangent.

Package: Math

Signature

func Cotanh(x: float64) -> float64;
func Cotanh(x: float32) -> float32;

Parameters

NameTypeDescription
xfloat64 / float32Any value.

Returns

The hyperbolic cotangent of x. Cotanh(0.0) is +Inf and Cotanh(-0.0) is -Inf, carrying the pole at zero with the right sign. Cotanh saturates to ±1.0 once |x| is large enough that the distinction is no longer representable. A NaN argument propagates.

Example

import Math::Cotanh;

func Main() -> int {
    let a = Cotanh(1.0); // 1.3130352854993312
    return 0;
}

See also

  • Math — the package overview
  • Tanh — hyperbolic tangent
  • Sinh / Cosh — hyperbolic sine and cosine