- Function Cube(x)
Cube
Cube(
x ! (input) numerical expression
)
Arguments
- x
A scalar numerical expression.
Return Value
The function
Cube
returns \(x^3\).
Graph
Example
_p_returnM1 := Cube(-1); ! Cube(-1) = -1
_p_returnZ := Cube( 0); ! Cube( 0) = 0
_p_returnP1 := Cube( 1); ! Cube( 1) = 1
_p_returnP2 := Cube( 2); ! Cube( 2) = 8
Note
The function Cube
can be used in constraints of nonlinear
mathematical programs.
See also
The functions Power
, Sqr
, and Sqrt
. Arithmetic functions
are discussed in full detail in Arithmetic Functions of the Language Reference.