求非线性方程的数值解。

现有方程 f = @(x) ((r^2/cos((r-x)/r)-(r-x)*sqrt(2*r*x-x^2))*L-V),其中r=2,L=5,V=8,要求f=0的根。这是一个实际问题,所以0<x<2*r
我使用过二分法、正割法、牛顿-拉普森方法,还有fzero都没用。是题目错了还是我的程序错了?
不知道你们能不能解出来

 採用された回答

hifof
hifof 2022 年 11 月 22 日

0 投票

不是方法的问题,而是这个方程根本没有根
r=2;L=5;V=8;
f = @(x) ((r^2/cos((r-x)/r)-(r-x)*sqrt(2*r*x-x^2))*L-V);
fplot(f,[0, 2*r])
[attach]132373[/attach]

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics and Optimization についてさらに検索

タグ

質問済み:

2022 年 11 月 22 日

回答済み:

2022 年 11 月 22 日

Community Treasure Hunt

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

Start Hunting!