baby_step_giant_step
Compute discrete logarithms in modular arithmetic using the Baby-step Giant-step algorithm to solve equations of the form g^x ≡ h (mod n).
Instructions
Solve discrete logarithm using Baby-step Giant-step 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": {
"g": "<g>",
"h": "<h>",
"n": "<n>"
},
"name": "baby_step_giant_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| g | Yes | ||
| h | Yes | ||
| n | Yes |