Solving a complicated equation in matlab

5 ビュー (過去 30 日間)
shelly
shelly 2013 年 2 月 18 日
I am trying to solve this equation in Matlab, I need to find the negative solution of this euation, here is what I do. syms x >> f=inline(cosh(3.7*x)+2.2*x^2-5*x-4); >> fzero(f,-2)
ans =
-0.351409329825233
I dont know what I am doing wrong?
Any help appreciated.

採用された回答

Carlos
Carlos 2013 年 2 月 18 日
編集済み: Carlos 2013 年 2 月 18 日
I think there is nothing wrong with your code. If I do
f(-0.351409329825233)
the answer is
ans =
-3.9968e-015
So -0.351409329825233 is a negative root of your equation.

その他の回答 (1 件)

shelly
shelly 2013 年 2 月 18 日
Thank you

カテゴリ

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