atan

math

Calculates the inverse tangent (arctangent) in radians

Syntax

atan(number)

Parameters

number (number)

The number to calculate the arctangent of

Returns

number

The arctangent in radians

Examples

Input:
1 | atan
Output:
0.785... (π/4)
Input:
atan(0)
Output:
0
Input:
atan(-1)
Output:
-0.785... (-π/4)

The atan() function calculates the inverse tangent (arctangent) of a number, returning the result in radians.

Usage

Use atan() to find angles from tangent values or to calculate angles from coordinate ratios in trigonometric calculations.

Related Functions