Overview | Group | Tree | Graph | Index | Concepts |
This function creates a new constrained expression equal to the base x raised to
the power p, that is, xp. If p is a floating-point value, then
x is constrained to be greater than or equal to 0 (zero). The argument p
must be different from 0 (zero). The effects of this function are reversible.
If the arguments are simply floating-point numbers (that is, they are not constrained expressions),
it merely returns an instance of IlcFloat
equal to the base raised to the power. The
base should be greater than 0 (zero).
The distinction between the two versions (whether the exponent is integer or floating-point) of
this function is not always handled correctly by certain C++ compilers. To cope with their vagaries,
if you want to use the integer exponent version, add L
(for long
) after
the exponent, like this:
IlcPower(x, 19L);
See Also:
IlcExponent, IlcFloatExp, IlcMonotonicDecreasingFloatExp, IlcMonotonicIncreasingFloatExp, IlcSquare