PIPS
|
Go to the source code of this file.
Functions | |
Value | exponentiate (Value x, int n) |
package arithmetique More... | |
package arithmetique
INTLIBRARY no overflow is checked int exponentiate(x,n): raise x to the power n
Precondition: n => 0
validation - n is positive
FI: la complexite pourrait etre reduite de O(n) a O(log n)
Definition at line 45 of file exp.c.
References assert, VALUE_ONE, value_product, and x.
Referenced by integer_power_to_transformer().