Sinus of a number of specific radians.
1 math.sin
<math.sin>
<var /> +
</math.sin>
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 one argument is required
illegal operator
illegal object types
Example
Copy
<xsql-script name='sin_sample1'> <body> <set name='result'><math.sin>0</math.sin></set> <println>sin(0)= <result/></println> --> sin(0) = 0.0 </body> </xsql-script>
Returns:
Copy
sin(0)= 0.0
Example
Copy
<xsql-script name='sin_sample2'> <body> <set name='result'><math.sin>1</math.sin></set> <println>sin(1)= <result/></println> --> sin(1) = 0.8414709848078965 </body> </xsql-script>
Returns:
Copy
sin(1) = 0.8414709848078965