Cody

Problem 85. Remove the polynomials that have positive real elements of their roots.

The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the roots of the polynomial have a positive real part, the behavior of the system will be divergent. Given a cell array of vectors that represent polynomials, remove the ones that have roots with positive real components.

Example:

 polyIn = {[1 1],[1 -1]}
 polyOut = {[1 1]}

since roots([1 -1]) is 1, a positive number.

Solution Stats

53.15% Correct | 46.85% Incorrect
Last solution submitted on Sep 15, 2019

Problem Comments

Solution Comments