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!