sec function

double sec (double radian)

Trigonometric Secant of an angle in radian, or hypotenuse / adjacent. Reciprocal of the cosine.

Implementation

double sec(double radian) {
  return 1 / cos(radian);
}