farey_sum
Calculate the Farey sum of two fractions for modular arithmetic applications. This tool computes the mediant fraction between given rational numbers.
Instructions
Calculate Farey sum of two fractions with applications to modular arithmetic. (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": {
"p1": "<p1>",
"q1": "<q1>",
"p2": "<p2>",
"q2": "<q2>"
},
"name": "farey_sum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p1 | Yes | ||
| q1 | Yes | ||
| p2 | Yes | ||
| q2 | Yes |