Info

この質問は閉じられています。 編集または回答するには再度開いてください。

coding

5 ビュー (過去 30 日間)
babu
babu 2011 年 8 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I want find out the roots of the following equation f(x)=x^3-5x^2-2cos2x=lnx-1
  2 件のコメント
babu
babu 2011 年 8 月 6 日
help me
Walter Roberson
Walter Roberson 2011 年 8 月 6 日
Please write your equation in MATLAB format. The current form is ambiguous. For example is it ln(x-1) or ln(x)-1 ? Why is there an "=" before the ln ?

回答 (2 件)

Dustin
Dustin 2011 年 8 月 6 日
Generate an array of all the x values you expect the root to lie within. Then, fnzeros should help you out.

Rikimaru83
Rikimaru83 2011 年 8 月 6 日
Hi, You can use the MatLab symbolic tool to solve the equation. If I've understood well, You wanto to solve the equation x^3-5x^2-2cos2x-lnx+1=0: syms x % symbolic variable x
EQ=x^3-5*x^2-2*cos(2*x)-log(x)+1; % equation to be solved
solution=solve(EQ) % solve the solution

この質問は閉じられています。

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by