How to find the first 3 roots of sin(x)+0.5=0 bigger than zero? (Multiple roots)
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Without using fzero function and without plotting the sin(x)+0.5 to find where the plot coincides with the x-axis, is there another way to obtain the first 3 roots of sin(x)+0.5=0?
Thanks Efe
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 6 Aug. 2014
Efe, that looks like a trick question... sin(x)+5 cannot be equal to zero, since sin(x) is between -1 and +1.
2 Kommentare
Mischa Kim
am 6 Aug. 2014
Bearbeitet: Mischa Kim
am 6 Aug. 2014
You can use any root-finding algorithm (Bisection, Newton-Raphson, etc.) to get the first root (e.g. in [pi,3*pi/2]) and then use symmetry and periodicity of the sine to get as many of the other roots as you need to.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu General Physics 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!