Tangent of a number of specific radians.
1 math.tan
<math.tan>
<var /> +
</math.tan>
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='tan_sample1'> <body> <set name='result'><math.tan>0</math.tan></set> <println>tan(0)= <result/></println> --> tan(0) = 0.0 </body> </xsql-script>
Returns:
Copy
tan(0) = 0.0
Example
Copy
<xsql-script name='tan_sample2'> <body> <set name='result'><math.tan>1</math.tan></set> <println>tan(1)= <result/></println> --> tan(1) = 1.5574077246549023 </body> </xsql-script>
Returns:
Copy
tan(1) = 1.5574077246549023