math.polynomial_roots
Compute all real and complex roots of a polynomial from descending-order decimal coefficients, supporting degrees 1–256 with a nonzero leading term.
Instructions
다항식의 모든 근(복소근 포함)을 numpy.roots 로 구한다. coefficients 는 높은 차수부터 내림차순 Decimal 문자열 리스트(예 [1, 0, -4] 는 x² - 4)이며 1차 이상 256차 이하, 최고차 계수는 0 이 아니어야 한다. 각 근은 {real, imag} 12자리 문자열이고 정렬되어 있지 않다. 오름차순으로 넣으면 다른 다항식이 되며 중근이 많으면 정밀도가 떨어진다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coefficients | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| roots | Yes | ||
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| degree | Yes |