| Name | Type | Description |
|---|---|---|
| X | T | The number for which the square root is computed. |
| p | T | The modulus. |
#include <nttl/modSqrt.h> ... long s = Sqrt( 1239273, 7 ); |
| Header | Algorithm |
|---|---|
| <nttl/modSqrt.h> | Tonneli/Shanks. This simply includes <nttl/modSqrtTonelli.h>. |
| <nttl/modSqrtTonelli.h> | Tonelli/Shanks. |
| <nttl/modSqrtLehmer.h> | (not yet working) Lehmer's algorithm. See [Knuth2]. |
| <nttl/modSqrtOld.h> | (not yet working) The algorithm from ln2. |