How to solve a nonlinear equation?
Ältere Kommentare anzeigen
I have an equation as follows
x^(8.5)+3*x^(2)=3000
How can I solve for x?
Thanks for any help!
Antworten (1)
[x,fval] = fzero( @(x) x^(8.5)+3*x.^2-3000,nthroot(3000,8.5))
7 Kommentare
CS
am 20 Okt. 2020
CS
am 20 Okt. 2020
It is the value of the function at the point found by fzero. You use it to see if the point is approximately a root. Equivalently, you could do,
fun=@(x) x^(8.5)+3*x.^2-3000;
x = fzero( fun,nthroot(3000,8.5)),
fval=fun(x)
CS
am 21 Okt. 2020
CS
am 21 Okt. 2020
[x,fval] = fzero( @(x) ((1/(3.52*10.^(22)))*abs(x)^(8.14))+(1/207000)*x.^2-4.52,0)
Kategorien
Mehr zu Optimization Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!