OpenBI Docs Buy

TAN

The tangent of an angle in radians.

Group: Math. Compatible with DAX.

Syntax

TAN ( <number> )
ParameterTypeDescription
numberNumberAn angle in radians.

Returns

Number. The tangent of the angle: its sine divided by its cosine.

Remarks

  • Angles are in radians. To work in degrees, wrap the angle in RADIANS first.
  • A blank gives BLANK.
  • Near a right angle (pi / 2) the tangent grows without bound; the computer gives a very large number there, not an error.
  • Very large angles, such as 1E9 radians, are an error.

Examples

Tangents

EVALUATE
ROW (
    "45°", TAN ( RADIANS ( 45 ) ),
    "Of 1", TAN ( 1 ),
    "Of -1", TAN ( -1 ),
    "Of 0", TAN ( 0 )
)
45°Of 1Of -1Of 0
11.5574077246549-1.55740772465490

ATAN, COT, SIN, COS.

Last updated · OpenBI Studio 0.3.74