Function Sin(x)

Sin

Sin(
   x             ! (input) numerical expression
   )

Arguments

x

A scalar numerical expression in radians.

Return Value

The Sin function returns the sine of x in the range \(-1\) to 1.

Graph

../../_images/sin.png

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