cot function

double cot (double radian)

Trigonometric Cotangent of an angle in radian, or adjacent / opposite. Reciprocal of the tangent.

Implementation

double cot(double radian) {
  return 1 / tan(radian);
}