How to solve a nonlinear equation?
古いコメントを表示
I have an equation as follows
x^(8.5)+3*x^(2)=3000
How can I solve for x?
Thanks for any help!
回答 (1 件)
[x,fval] = fzero( @(x) x^(8.5)+3*x.^2-3000,nthroot(3000,8.5))
7 件のコメント
CS
2020 年 10 月 20 日
CS
2020 年 10 月 20 日
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
2020 年 10 月 21 日
CS
2020 年 10 月 21 日
[x,fval] = fzero( @(x) ((1/(3.52*10.^(22)))*abs(x)^(8.14))+(1/207000)*x.^2-4.52,0)
カテゴリ
ヘルプ センター および File Exchange で Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!