Find the roots of a complicated expression
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tim Berry
am 27 Dez. 2021
Bearbeitet: Torsten
am 27 Dez. 2021
Is it possible find the roots of a complicated expression like this:
-190 + 100/(1+0.01+x) + 80/(1+0.02+x)^2 + 20/(1+0.03+x)^3
Is there a way to rearrange this into a polynomial first, and then seek its roots?
(It would be easy if the denominators in the expression were simply (1+x), but in this complicated expression each denominator is different.)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 27 Dez. 2021
format long g
syms x
y = -190 + 100/(1+0.01+x) + 80/(1+0.02+x)^2 + 20/(1+0.03+x)^3
xsol = solve(y)
double(xsol)
1 Kommentar
Siehe auch
Kategorien
Mehr zu Polynomials finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!