ArcCot v0.1.0

Source
Returns the inverse cotangent, in radians.

Package: Math

Signature

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

Parameters

NameTypeDescription
xfloat64 / float32Any value.

Returns

HalfPi - ArcTan(x), the angle in (0, Pi) whose cotangent is x, defined for every real x — including 0.0, where ArcCot(0.0) is HalfPi rather than a pole. A NaN argument propagates.

Example

import Math::ArcCot;

func Main() -> int {
    let a = ArcCot(0.0); // 1.5707963267948966 (HalfPi)
    let b = ArcCot(1.0); // 0.7853981633974483 (QuarterPi)
    return 0;
}

See also

  • Math — the package overview
  • Cotan — the function ArcCot inverts
  • ArcTanHalfPi - ArcCot(x)