Secant Function

Function

sec(θ)

Summary

Given the angle of a right triangle as input, returns the ratio of the hypotenuse over the adjacent side. The secant function is the inverse of the cosine function.

Input

Name Description
θ The symbol θ (theta) is a number representing the angle of a right triangle.

Output

Returns the ratio of the right triangle's adjacent side over its hypotenuse.