Solve a quadratic programming problem and return the Lagrange multipliers. The following example solves the quadratic equation x 2 -7x 12 0. Disp s 1.
To solve a quadratic equation by factoring Put all terms on one side of the equal sign leaving zero on the other side.
Xfvalexitflagoutputlambda quadprog HfAb lb. Solve a quadratic equation. Solx solve eqn x. Eq x2 -7x 12 0.