8.2.2 ASIN
Returns the angle (in radians) that is the inverse sine of the target data, in the range -/2 to /2.
- Organization of this subsection
(1) Specification format
scalar-function-ASIN ::= ASIN(target-data) target-data ::= value-expression
(2) Explanation of specification format
- target-data:
-
Specifies the numeric data whose inverse sine is to be determined.
The following rules apply:
-
Specify the target data in the form of a value expression. For details about value expressions, see 7.20 Value expression.
-
Specify numeric data for the target data. For details about numeric data, see (1) Numeric data in 6.2.1 List of data types.
-
Specify a value from -1 to 1 for the target data. Out-of-range values result in an error.
-
You cannot specify a dynamic parameter by itself for the target data.
-
(3) Rules
-
The data type of the execution result is the DOUBLE PRECISION type.
-
The NOT NULL constraint does not apply to the value of the execution result (the null value is allowed).
-
If the target data has the null value, the execution result will be a null value.
(4) Example
- Example:
-
Determine the inverse sine of the values in columns C1 to C3 in table T1.
SELECT ASIN("C1"),ASIN("C2"),ASIN("C3") FROM "T1"