Skip to content
Joris Gillis edited this page Apr 4, 2023 · 2 revisions

Standard documentation for poly_roots:

 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

Extra documentation

To edit, see writing tips.

Clone this wiki locally