TAN
The tangent of an angle in radians.
Group: Math. Compatible with DAX.
Syntax
TAN ( <number> )
| Parameter | Type | Description |
|---|---|---|
number | Number | An 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
RADIANSfirst. - 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 1 | Of -1 | Of 0 |
|---|---|---|---|
| 1 | 1.5574077246549 | -1.5574077246549 | 0 |