Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
coding
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want find out the roots of the following equation f(x)=x^3-5x^2-2cos2x=lnx-1
2 Kommentare
Walter Roberson
am 6 Aug. 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 ?
Antworten (2)
Dustin
am 6 Aug. 2011
Generate an array of all the x values you expect the root to lie within. Then, fnzeros should help you out.
0 Kommentare
Rikimaru83
am 6 Aug. 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
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!