Skip to content

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): number

Parameters ​

  • 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 angle
  • atan2 - Calculates the arctangent of y/x with quadrant handling
  • asin - Calculates the arcsine

Sources ​

Released under the MIT license.