Returns the sine of an angle stored in angle and expressed in radians.
An error occurs if angle does not contain a valid angle.
sin(angle)
Parameter | Type | Description |
---|---|---|
angle | Decimal number | Any decimal number representing the angle in radians. |
A string containing the sine, or an empty string if an error occurs.
In this example, the result of sin is "0.909297".
<field sid="sineField">
<label>Test sin()</label>
<format>
<datatype>string</datatype>
<constraints>
<mandatory>on</mandatory>
</constraints>
</format>
<value compute="sin('2')"></value>
</field>