Finding a nonlinear equation root
3 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone, i have an equation such that cosh(x)*cos(x)+1=0. I can solve with fsolve but this solver does not give me root, i need to give an interval. How can i solve and finding roots for this equation? Is there any possibilty to solve with using fzero to find roots directly ?In my book roots are:1.875,4.694 and goes on and on
Thanks
0 件のコメント
回答 (1 件)
Torsten
2023 年 4 月 17 日
fun = @(x)cosh(x).*cos(x)+1;
icount = 0;
for i = 1:2:21
x0 = i*pi/2;
icount = icount + 1;
xroot(icount) = fzero(fun,x0);
end
xroot
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!