How do I find ALL of the positive roots of exp(-0.2*x)*cos(2*x)-0.15*x^2+1?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rebecca
am 11 Apr. 2014
Kommentiert: Rebecca
am 11 Apr. 2014
I enter this into Matlab but I only receive back one of its positive roots and I know it has at least three.
syms x,
y=exp(-0.2*x)*cos(2*x)-0.15*x^2+1;
sol=solve(y)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 11 Apr. 2014
It has exactly three.
The easiest way is to plot the function, observe the approximate crossings, and run a numeric solver that is constrained to each range in turn.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!