polrootsmod
Find all roots of a polynomial modulo a prime p. Useful for number theory and algebraic computations.
Instructions
Compute the roots of a polynomial modulo p.
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": {
"pol": "<pol>",
"p": "<p>"
},
"name": "polrootsmod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p | Yes | Prime modulus. | |
| pol | Yes | Polynomial as a string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |