Skip Headers
Oracle® OLAP DML Reference
10g Release 2 (10.2)

Part Number B14346-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

SIN

The SIN function calculates the sine of an angle expression. The result returned by SIN is a decimal value with the same dimensions as the specified expression.

Return Value

DECIMAL

Syntax

SIN(angle-expression)

Arguments

angle-expression

A numeric expression that contains an angle value, which is specified in radians.

Examples

Example 23-34 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 23-35 Calculating the Sine of an Angle in Degrees

This example calculates the sine of an angle of 30 degrees. Since 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