Class FastExponentiation
A fast exponentiation algorithm implementation.
Inherited Members
Namespace: Advanced.Algorithms.Numerical
Assembly: Advanced.Algorithms.dll
Syntax
public class FastExponentiation
Methods
BySquaring(Int32, Int32)
Computes exponentiation using squaring.
Declaration
public static int BySquaring(int base, int power)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | base | |
| Int32 | power |
Returns
| Type | Description |
|---|---|
| Int32 |