math.interpolate_linear
Computes a value at a query point by linearly interpolating between two or more sample points, and returns an error instead of extrapolating outside the given range.
Instructions
표본점 (xs, ys) 를 직선으로 이어 x_query 에서의 값을 구하는 1차원 선형 보간이다. xs 는 엄격히 증가하는 2개 이상의 Decimal 문자열 리스트, ys 는 같은 길이. x_query 가 [min(xs), max(xs)] 밖이면 외삽하지 않고 오류를 낸다. float64 계산, 유효숫자 12자리.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xs | Yes | ||
| ys | Yes | ||
| x_query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| result | Yes |