poly
Builtin index · Statistics & ML
result = poly(r)
Input: r · Output: result
What it is
Coefficients (highest power first, leading 1) of the monic polynomial with the roots r, a Vec, CVec or scalar; poly([]) is [1].
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
result = poly(r) | r Vec, CVec, or scalarnot documented yet | result Vec, CVec, or matrix | Returns a real Vec when the roots are real or come in conjugate pairs (matched to a tolerance of 1e-8 relative to each root), otherwise a CVec. The inverse of roots up to the leading coefficient. A matrix argument (characteristic polynomial) is an error. Errors: non-numeric or non-finite roots. |
Examples
No documentation example calls this form yet. The Statistics & ML chapter is where one belongs.