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

float tan(float argument)

Returns the tangent of the argument.

The argument is an angle expressed in radians. If you need the tangent of an angle expressed in degrees, multiply it by PI / 180 or use the radians conversion function before taking the cosine.

Example

=tan(PI / 4)

and

=tan(radians(45))

both equal 1 (the tangent of 45 degrees).

See also atan, atan2, cos, sin.