Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

coding

1 visualizzazione (ultimi 30 giorni)
babu
babu il 6 Ago 2011
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I want find out the roots of the following equation f(x)=x^3-5x^2-2cos2x=lnx-1
  2 Commenti
babu
babu il 6 Ago 2011
help me
Walter Roberson
Walter Roberson il 6 Ago 2011
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 ?

Risposte (2)

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

Rikimaru83
Rikimaru83 il 6 Ago 2011
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

Questa domanda è chiusa.

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by