Documentation moved.
This entry is documented with its primary interface. Open the documentation →
Function
src/solve/solve.ts:504roots
roots(input: ExpressionInput, variable?: ExpressionInput, method?: ExpressionInput): VectorReturns polynomial roots as a Vector.
Unlike solve(), which returns a SolutionSet with solver metadata, this function preserves
the roots API's Vector return type. Numeric constants retain the historical square-root
interpretation. Univariate polynomials delegate to PolynomialSolver and therefore return
numerical roots.
An optional third argument selects aberth (default) or jenkinstraub.
Parameters
| Name | Type | Description |
|---|---|---|
input | ExpressionInput | — |
variable | ExpressionInput | — |
method | ExpressionInput | — |
