Function that calculates the power of a value.
Syntax |
real pow (real base, real exp) |
---|---|
base |
Base (must be > 0) |
exp |
Exponent |
Result |
Returns the base result elevated to exp |
Validity |
Rule, Task |
Note |
If base is negative and exp is integer then performs power. If base is negative and exp is fractional returns 0 with error. If exp = 0 the function returns 1.0 |
Example of use:
|