Solve a numerical equation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
yinki23
am 28 Jan. 2019
Beantwortet: Torsten
am 28 Jan. 2019
Hi everyone,
I have a problem solving a numerical equation. I want the result near zero for:
((1/6)*abs(sin(x*6/2)/sin(x/2))) = 1/sqrt(2)
It should be around x = 0.4695;
I tried the following:
myfunc = @(x) ((1/6)*abs(sin(x*6/2)/sin(x/2)))-1/sqrt(2);
x0 = 0;
fzero(myfunc,x0);
But somehow doesn't work for me. Can somebody help me please and tell me why it doesn't work?
Thanks.
0 Kommentare
Akzeptierte Antwort
Stephan
am 28 Jan. 2019
Hi,
use another x0:
myfunc = @(x) ((1/6)*abs(sin(x*6/2)/sin(x/2)))-1/sqrt(2);
x0 = 1;
fzero(myfunc,x0);
This will make it work.
Best regards
Stephan
0 Kommentare
Weitere Antworten (2)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!