tonelli_shanks
Find modular square roots for quadratic congruences x² ≡ a (mod p) using the Tonelli-Shanks algorithm to solve modular arithmetic problems.
Instructions
Solve x² ≡ a (mod p) using Tonelli-Shanks algorithm. (Domain: arithmetic, Category: modular_arithmetic)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"a": "<a>",
"p": "<p>"
},
"name": "tonelli_shanks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| p | Yes |