ldcf.net
当前位置:首页 >> 用MATLAB求代数方程3*x^5+4*x^4+7*x^3+2*x^2+9*x+1... >>

用MATLAB求代数方程3*x^5+4*x^4+7*x^3+2*x^2+9*x+1...

x=roots([3 4 7 2 9 12]) 或 x=double(solve('3*x^5+4*x^4+7*x^3+2*x^2+9*x+12')) 结果: x = -0.9583 0.6737 + 1.0159i -0.8612 - 1.4377i -0.8612 + 1.4377i 0.6737 - 1.0159i

在Matlab下输入:edit zhidao_feiying.m,然后将下面两行百分号之间的内容,复制进去,保存 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function y=zhidao_feiying(t,x) a=1; b=2; c=3; d=4; %%比方说 %f=a*x+y-z; %g=b*sin(x*y)-c*cos...

网站首页 | 网站地图
All rights reserved Powered by www.ldcf.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com