Modular exponentiation
bpj_discrete_modular_powerUse repeated squaring to calculate a large integer power modulo a supplied base modulus.
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>",
"exponent": "<exponent>",
"modulus": "<modulus>"
},
"name": "bpj_discrete_modular_power"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| modulus | Yes | ||
| exponent | Yes |