SIN
The sine of an angle in radians.
Group: Math. Compatible with DAX.
Syntax
SIN ( <number> )
| Parameter | Type | Description |
|---|---|---|
number | Number | An angle in radians. |
Returns
Number. A number from -1 to 1: 0 for an angle of 0, 1 for a quarter turn.
Remarks
- Angles are in radians. To work in degrees, wrap the angle in
RADIANSfirst. - A blank gives BLANK (where
COSof a blank is 1). - Floating point leaves a trace:
SIN ( PI () )is a tiny number, not exactly 0, soSIN ( PI () ) = 0is FALSE. Round before comparing. - Very large angles, such as 1E9 radians, are an error.
Examples
Sines
EVALUATE
ROW (
"30°", SIN ( RADIANS ( 30 ) ),
"Pi / 2", SIN ( PI () / 2 ),
"Blank", SIN ( BLANK () )
)
| 30° | Pi / 2 | Blank |
|---|---|---|
| 0.5 | 1 | (blank) |
Not exactly zero
EVALUATE
ROW (
"As it is", SIN ( PI () ) = 0,
"Rounded", ROUND ( SIN ( PI () ), 10 ) = 0
)
| As it is | Rounded |
|---|---|
| FALSE | TRUE |