几道MATLAB的题,需要具体代码

学习 时间:2026-04-07 18:28:43 阅读:3285
几道MATLAB的题,需要具体代码1求e^x-3*x^2=0的所有根并画图2求x*sin(x)-1/2=0的至少三个根3求sinx*cosx-x^2=0的所有根4求0到1/2的exp(811x^2)定积分5将sqrt(0.811+x)在x=0展开并且x最高次幂为8

最佳回答

含糊的小蝴蝶

魁梧的棒棒糖

2026-04-07 18:28:43

1、f=@(x)exp(x)-3*x。^2;a1=fsolve(f,1);a2=fsolve(f,0);x=-2:0。01:2;y=f(x);figureplot(x,y,x,zeros(1,length(x)))hold onplot(a1,0,'r*',a2,0,'r*')2、f=@(x)x。*sin(x)-1/2;a1=fsolve(f,1);a2=fsolve(f,3);a3=fsolve(f,5);x=0:pi/100:3*pi;y=f(x);figureplot(x,y,x,zeros(1,length(x)))hold onplot(a1,0,'r*',a2,0,'r*',a3,0,'r*')3、f=@(x)sin(x)。*cos(x)-x。^2;a1=fsolve(f,0);a2=fsolve(f,3);x=-1:0。001:1;y=f(x);figureplot(x,y,x,zeros(1,length(x)))hold onplot(a1,0,'r*',a2,0,'r*')4、f=inline('exp(811*x。^2)');jifen=quad(f,0,1/2);5、syms xf=sqrt(0。811+x);f8=taylor(f,9)祝你学习愉快!

最新回答共有2条回答

  • 缓慢的乌龟
    回复
    2026-04-07 18:28:43

    1、f=@(x)exp(x)-3*x。^2;a1=fsolve(f,1);a2=fsolve(f,0);x=-2:0。01:2;y=f(x);figureplot(x,y,x,zeros(1,length(x)))hold onplot(a1,0,'r*',a2,0,'r*')2、f=@(x)x。*sin(x)-1/2;a1=fsolve(f,1);a2=fsolve(f,3);a3=fsolve(f,5);x=0:pi/100:3*pi;y=f(x);figureplot(x,y,x,zeros(1,length(x)))hold onplot(a1,0,'r*',a2,0,'r*',a3,0,'r*')3、f=@(x)sin(x)。*cos(x)-x。^2;a1=fsolve(f,0);a2=fsolve(f,3);x=-1:0。001:1;y=f(x);figureplot(x,y,x,zeros(1,length(x)))hold onplot(a1,0,'r*',a2,0,'r*')4、f=inline('exp(811*x。^2)');jifen=quad(f,0,1/2);5、syms xf=sqrt(0。811+x);f8=taylor(f,9)祝你学习愉快!

上一篇 1.---------- you esplained it to me better I ----------under

下一篇 他可以选择不去工作.求翻译成英语.