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