- Function Degrees(x)
Degrees
Degrees(
x ! (input) numerical expression
)
Arguments
- x
A scalar numerical expression.
Return Value
The function
Degrees
returns the value of x converted from radians to degrees.
Example
_p_returnA := degrees(p_pi ); ! degrees(pi) = 180
_p_returnB := degrees(p_pi/2); ! degrees(pi/2) = 90
_p_returnC := degrees( 0 ); ! degrees(0) = 0
_p_returnD := degrees(p_pi/4); ! degrees(pi/4) = 45 1
Note
The function Degrees
can be used in constraints of linear and
nonlinear mathematical programs.
See also
The function
Radians
.Arithmetic functions are discussed in full detail in Arithmetic Functions of the Language Reference.