interpolate_calc
Computes the y value for a given x via linear interpolation or extrapolation between two points.
Instructions
Linear interpolation (or extrapolation) between two points. Returns the y value for a given x.
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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>",
"x": "<x>"
},
"name": "interpolate_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X value to interpolate at. | |
| x1 | Yes | X coordinate of first point. | |
| x2 | Yes | X coordinate of second point. | |
| y1 | Yes | Y coordinate of first point. | |
| y2 | Yes | Y coordinate of second point. |