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

조회 수: 3 (최근 30일)
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 CenterFile Exchange에서 General Physics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by