第六章代数方程的解 代数方程的图解法 多项式型方程的准解析解法 般非线性方程数值解
第六章 代数方程的解 • 代数方程的图解法 • 多项式型方程的准解析解法 • 一般非线性方程数值解
6.1代数方程的图解法 元方程的图解法 例:用图解法求c3sim(4+2)+4c051c0(2)=05 exp(3 t) sin(4 t+2)+4 exp(0.5 t)cos(2 t)0.5 ezplot('exp(-3 t) 2.5 ssin(4 *t+2)+4 exp (-0.5*t)*cOs(2*t 0.5 0.5,05]) 0 >> hold on >>line([O,5]0,0]) %同时绘制横轴
6.1 代数方程的图解法 • 一元方程的图解法 例: >> ezplot('exp(-3*t)… *sin(4*t+2)+4*exp… (-0.5*t)*cos(2*t)-… 0.5',[0 5]) >> hold on, >> line([0,5],[0,0]) % 同时绘制横轴
验证: syms xt; t=3.52028; vpa(exp(-3*t)*sin(4 t+2)+ 4*exp(-0.5*t)*COS(2*t)-0.5) ans 19256654148425145223200161126442e4 10 exp(3 t) sin(4 t+2)+4 exp(-05 t)cos(2 t)-05 3520235202350235033.52033.520335203
验证: >> syms x t ; t=3.52028; vpa(exp(-3*t)*sin(4*t+2)+… 4*exp(-0.5*t)*cos(2*t)-0.5) ans = -.19256654148425145223200161126442e-4
二元方程的图解法 例 x2e-xy /2+e-x/2 sin(xy)=0 用图解法求 cos(x+y2)+y2exty=0 ezplot(x 2*exp(-X*y2/2)+exp(-x/2)*sin(x*y),) 6第一个方程曲线 x2 exp( y2/2)+exp(x/2)sin( y)=0 > hold on %保护当前坐标系 ezplot(y/2 cos(y+x/2)+ x/2*exp(x+y))
• 二元方程的图解法 例: >> ezplot('x^2*exp(-x*y^2/2)+exp(-x/2)*sin(x*y)') % 第一个方程曲线 >> hold on % 保护当前坐标系 >> ezplot('y^2 *… cos(y+x^2) +… x^2*exp(x+y)')
y2 oos(+x2)+x2 exp(x+y)=0 方程的图解法 仅适用于一元 二元方程的求根 问题
• 方程的图解法 仅适用于一元、 二元方程的求根 问题