math.polynomial_horner
Evaluate polynomials via Horner's method with Decimal coefficients supplied in descending order, returning the value and degree without float conversion.
Instructions
호너 방법으로 다항식 P(x) 를 Decimal 로 평가한다. coefficients 는 높은 차수부터 내림차순(예 [1, 0, -4] 는 x² - 4), x 는 Decimal 문자열이다. float 를 거치지 않으며 degree 도 함께 반환한다. 계수를 오름차순으로 넣으면 다른 다항식이 평가된다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| coefficients | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| degree | Yes | ||
| result | Yes |