- 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
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
The functions
Cos
,Tan
,ArcSin
. Arithmetic functions are discussed in full detail in Arithmetic Functions of the Language Reference.