SIN DAX Function (Math and Trig)
Returns the sine of the given angle.
Syntax
Parameter | Attributes | Description |
---|---|---|
Number |
The angle in radians for which you want the sine. |
Return values
Returns the sine of the given angle.
Remarks
If your argument is in degrees, multiply it by PI()/180 or use the RADIANS function to convert it to radians.
Examples
-- SIN, COS, ASIN, ACOS, TAN, ATAN, COT, ACOT are the -- standard trigonometrical functions. -- -- Where required, the arguments are specified in radians. DEFINE VAR Vals = GENERATESERIES ( -PI()+0.001, PI(), PI()/4 ) EVALUATE ADDCOLUMNS ( Vals, "SIN", SIN ( [Value] ), "ASIN", ASIN ( SIN ( [Value] ) ), "COS", COS ( [Value] ), "ACOS", ACOS ( COS ( [Value] ) ), "TAN", TAN ( [Value] ), "ATAN", ATAN ( TAN ( [Value] ) ), "COT", COT ( [Value] ), "ACOT", ACOT ( COT ( [Value] ) ) )
Value | SIN | ASIN | COS | ACOS | TAN | ATAN | COT | ACOT |
---|---|---|---|---|---|---|---|---|
-3.14 | -0.00 | -0.00 | -1.00 | 3.14 | 0.00 | 0.00 | 1,000.00 | 0.00 |
-2.36 | -0.71 | -0.79 | -0.71 | 2.36 | 1.00 | 0.79 | 1.00 | 0.79 |
-1.57 | -1.00 | -1.57 | 0.00 | 1.57 | -1,000.00 | -1.57 | -0.00 | 1.57 |
-0.78 | -0.71 | -0.78 | 0.71 | 0.78 | -1.00 | -0.78 | -1.00 | 2.36 |
0.00 | 0.00 | 0.00 | 1.00 | 0.00 | 0.00 | 0.00 | 1,000.00 | 0.00 |
0.79 | 0.71 | 0.79 | 0.71 | 0.79 | 1.00 | 0.79 | 1.00 | 0.79 |
1.57 | 1.00 | 1.57 | -0.00 | 1.57 | -1,000.00 | -1.57 | -0.00 | 1.57 |
2.36 | 0.71 | 0.78 | -0.71 | 2.36 | -1.00 | -0.78 | -1.00 | 2.36 |
Related functions
Other related functions are:
Last update: Feb 26, 2021 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo
MSDN documentation: https://docs.microsoft.com/en-us/dax/sin-function-dax