interpolate_calc
Read-onlyIdempotent
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.
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. |