Cosine arch, (inverse of cosine) of a specific number of radians.
1 math.acos
<math.acos>
<var /> +
</math.acos>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evar | number |
Returns | |
---|---|
Type | Description |
double | Result of the operation. |
Exceptions
at least 1 argument required
At least 1 argument is required.
illegal operator
Incorrect operator.
illegal object types
Example
Copy
<xsql-script name='acos_sample1'> <body> <set name='result'><math.acos>0</math.acos></set> <println>acos(0) = <result/></println> --> acos(0) = 1.5707963267948966 </body> </xsql-script>
Returns:
Copy
acos(0) = 1.5707963267948966
Example
Copy
<xsql-script name='acos_sample2'> <body> <set name='result'><math.acos>1</math.acos></set> <println>acos(1) = <result/></println> --> acos(1) = 0.0 </body> </xsql-script>
Returns:
Copy
acos(1) = 0.0