Back to Symbolic Math (SymEngine)
sym.solve_poly
Solve a polynomial equation for a variable.
Syntax
sym.solve_poly(f, x)
Description
Solve a polynomial equation for a variable. Finds all solutions to the equation f(x) = 0 where f is a polynomial in x. Only works when the solution set is finite.
Parameters
| Name | Description |
|---|---|
| f | - The polynomial equation (set equal to zero). |
| x | - The variable to solve for. |
Returns
Expr[]