Investment Studio > Expressions > Functions > Math & Trig > ATAN

float atan(float argument)

Returns the arctangent of the argument. The argument can be any real number.

The arctangent is the angle such that tan(angle) = argument. It's expressed in radians. Range: [-PI / 2, PI / 2].

To convert the result to degrees, multiply by 180 / PI or use the degrees conversion function.

Example

=atan(1)

returns 0.785398163397448 = PI / 4 radians. You can verify that

=tan(PI / 4)

is 1. To express the arctangent in degrees, you can use

=degrees(atan(1))

to get the answer 45 degrees.

See also acos, asin, atan2, tan.