-
Notifications
You must be signed in to change notification settings - Fork 364
L_198
Joris Gillis edited this page Apr 4, 2023
·
2 revisions
Attempts to find the roots of a polynomial.
::
poly_roots(DM p) -> DM poly_roots(SX p) -> SX
This will only work for polynomials up to order 3 It is assumed that the roots are real.
Extra doc: https://github.com/casadi/casadi/wiki/L_198
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L824
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L824-L826
To edit, see writing tips.