hello everybody, i want to ask a little bit question, how i can get the value of x from this equation (sin(x)-sin(1.57)*exp(-(2*pi-x+1.57/2010.6))) , thank you

 채택된 답변

Stephen23
Stephen23 2018년 4월 21일
편집: Stephen23 2018년 4월 21일

1 개 추천

To get one solution within a range where there is a zero intersect:

>> fun = @(x) sin(x)-sin(1.57)*exp(-(2*pi-x+1.57/2010.6));
>> val = fzero(fun,[-1,1])
val =  0.0018695

Do you want to get multiple intersects?

댓글 수: 6

Leo Parytta
Leo Parytta 2018년 4월 21일
aw thank you, sure may i?
Leo Parytta
Leo Parytta 2018년 4월 21일
thank you so much :)
Ameer Hamza
Ameer Hamza 2018년 4월 21일
편집: Ameer Hamza 2018년 4월 21일
@Leo, it is better to accept the answer once you are satisfied with the results. It will save the time of other people, who are trying to answer the questions and those who are searching on the same topic.
Walter Roberson
Walter Roberson 2018년 4월 21일
Note: the value shown is the only real-valued solution. The other solutions are complex-valued.
Leo Parytta
Leo Parytta 2018년 4월 22일
sorry i forgot, but thank you everyone :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Scripts에 대해 자세히 알아보기

태그

질문:

2018년 4월 21일

편집:

2023년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by