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

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 个评论

aw thank you, sure may i?
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.
Note: the value shown is the only real-valued solution. The other solutions are complex-valued.
sorry i forgot, but thank you everyone :)

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Scripts 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by