best_approximation_farey
Find the closest rational approximation to any decimal number using Farey sequences, with control over denominator size for precision.
Instructions
Find best rational approximation using Farey sequences. (Domain: arithmetic, Category: farey_sequences)
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": {
"target": "<target>",
"max_denom": "<max_denom>"
},
"name": "best_approximation_farey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| max_denom | Yes |