mediant
Calculate the mediant of two fractions for arithmetic operations and Farey sequence applications.
Instructions
Calculate the mediant of two fractions. (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": "mediant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p1 | Yes | ||
| q1 | Yes | ||
| p2 | Yes | ||
| q2 | Yes |