How to find the first 3 roots of sin(x)+0.5=0 bigger than zero? (Multiple roots)

3 ビュー (過去 30 日間)
efe
efe 2014 年 8 月 6 日
編集済み: Mischa Kim 2014 年 8 月 6 日
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

採用された回答

Mischa Kim
Mischa Kim 2014 年 8 月 6 日
Efe, that looks like a trick question... sin(x)+5 cannot be equal to zero, since sin(x) is between -1 and +1.
  2 件のコメント
efe
efe 2014 年 8 月 6 日
Sorry for punctuation it should be sin(x)+.5=0.
Mischa Kim
Mischa Kim 2014 年 8 月 6 日
編集済み: Mischa Kim 2014 年 8 月 6 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Physics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by