asec function

double asec (double hypotenuse)

Trigonometric principal Arc Secant in radian.

Implementation

double asec(double hypotenuse) {
  return acos(1 / hypotenuse);
}