I solve this equation and only get one answer zero. how can I find more answers for x ? For example some other answers are 3.9887 ; 7.1025 ; 10.2340; 13.3701 . Thanks

6 ビュー (過去 30 日間)
syms x
solve (1-cos(x)*cosh(x)+2*x*(sin(x)*cosh(x)-cos(x)*sinh(x)),x)
ans=
0

採用された回答

Andrei Bobrov
Andrei Bobrov 2017 年 6 月 30 日
F = @(x)1-cos(x)*cosh(x)+2*x*(sin(x)*cosh(x)-cos(x)*sinh(x));
x = (0:100)*pi;
for ii = numel(x)-1:-1:1
r(ii,1) = fzero(F,[x(ii),x(ii+1)]);
end
  2 件のコメント
ebrahimina
ebrahimina 2017 年 6 月 30 日
編集済み: ebrahimina 2017 年 6 月 30 日
Thank you so much, Andrei Bobrov. It works like a charm
ebrahimina
ebrahimina 2017 年 6 月 30 日
編集済み: ebrahimina 2017 年 6 月 30 日
Do you know any commands or functions in MATLAB for solving a transcendental equation like this? or I have to write a program for solving this equation? beta1 and beta2 are constant.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by