|
D.11.1.1 schnellexpt
Procedure from library aksaka.lib (see aksaka_lib).
- Usage:
- schnellexpt(a,m,n);
- Return:
- the m-th power of a; if a^m>n the procedure returns n+1
- Note:
- uses fast exponentiation
Example:
| LIB "aksaka.lib";
ring R = 0,x,dp;
schnellexpt(2,10,1022);
==> 1023
|
|