atan
The atan() method returns the arctangent of a number, that is, the angle (in radians) whose tangent is equal to the given value. It is the inverse function of tan().
Interactive example
Syntax
typescript
function atan<
GenericInput extends number,
>(input: GenericInput): numberParameters
input: A number representing the tangent of an angle.
Return value
The angle in radians (between -π/2 and π/2) whose tangent equals the given value.
See also
tan- Calculates the tangent of an angleatan2- Calculates the arctangent of y/x with quadrant handlingasin- Calculates the arcsine
