Clear Filters
Clear Filters

Positive roots only for cubic eqn

3 views (last 30 days)
matlab
matlab on 23 Jun 2020
Edited: madhan ravi on 23 Jun 2020
How I get positive roots x^3 − 5x^2 − 2x + 24 = 0 Using syms x eqn=x^3 − 5x^2 − 2x + 24 ==0

Accepted Answer

madhan ravi
madhan ravi on 23 Jun 2020
Edited: madhan ravi on 23 Jun 2020
ROOTS = roots([1, -5, -2, 24]);
Wanted = ROOTS(ROOTS > 0)

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!