sin

Returns the sine of an angle stored in angle and expressed in radians.

An error occurs if angle does not contain a valid angle.

Syntax

   sin(angle)
Table 1. sin parameters
Parameter Type Description
angle Decimal number Any decimal number representing the angle in radians.

Returns

A string containing the sine, or an empty string if an error occurs.

Example

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>