- Function Sin(x)
Sin
Sin(
   x             ! (input) numerical expression
   )
Arguments
- x
A scalar numerical expression in radians.
Return Value
The
Sinfunction returns the sine of x in the range \(-1\) to \(1\).
Graph
 
Example
_p_returnM1 := Sin(-p_pi); ! Sin(-pi) = 0
_p_returnZ  := Sin( 0   ); ! Sin( 0 ) = 0
_p_returnP1 := Sin( p_pi); ! Sin( pi) = 0
Note
The function Sin can be used in constraints of nonlinear
mathematical programs.
See also
- Arithmetic functions are discussed in full detail in Arithmetic Functions of the Language Reference.