Example 8-98 Calculating the Sine of an Angle in Radians
This example calculates the sine of an angle of 1 radian. The statements
DECIMALS = 5
SHOW SIN(1)
produce the following result.
0.84147
Example 8-99 Calculating the Sine of an Angle in Degrees
This example calculates the sine of an angle of 30 degrees. Because 1
degree = 2*(pi)/360
radians, 30
degrees is about 30*2*3.14159/360
radians. The OLAP DML statement
SHOW SIN(30 * 2 * 3.14159 / 360)
produces the following result.
0.50000