Returns the tangent of an angle expressed in radians stored in angle.
An error occurs if angledoes not contain a valid angle. For example, p/2, 3p/2, or 5p/2.
tan(angle)
Parameter | Type | Description |
---|---|---|
angle | Decimal number | Any decimal number representing the angle in radians. |
A string containing the tangent, or an empty string if an error occurs.
In this example, the result of tan is "-2.185040".
<field sid="tanField">
<label>Test tan()</label>
<format>
<datatype>string</datatype>
<constraints>
<mandatory>on</mandatory>
</constraints>
</format>
<value compute="tan('2')"></value>
</field>