OpenBI Docs Buy

SIN

The sine of an angle in radians.

Group: Math. Compatible with DAX.

Syntax

SIN ( <number> )
ParameterTypeDescription
numberNumberAn 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 RADIANS first.
  • A blank gives BLANK (where COS of a blank is 1).
  • Floating point leaves a trace: SIN ( PI () ) is a tiny number, not exactly 0, so SIN ( PI () ) = 0 is 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 / 2Blank
0.51(blank)

Not exactly zero

EVALUATE
ROW (
    "As it is", SIN ( PI () ) = 0,
    "Rounded", ROUND ( SIN ( PI () ), 10 ) = 0
)
As it isRounded
FALSETRUE

COS, TAN, ASIN, RADIANS, PI.

Last updated · OpenBI Studio 0.3.74