南邮数学实验答案(26 页)Good is good, but better carries it
精益求精,善益求善
第一次练习题1、求的所有根
>>x=-5:0
01:5;y=exp(x)-3*x
^2;plot(x,y);grid on-5-4-3-2-1012345-80-60-40-20020406080>> fsolve('exp(x)-3*x
^2',-1)Equation solved
fsolve completed because the vector of function values is near zeroas measured by the default value of the function tolerance, andthe problem appears regular as measured by the gradient
ans = -0
4590>> fsolve('exp(x)-3*x
^2',1)Equation solved
fsolve completed because the vector of function values is near zeroas measured by the default value of the function tolerance, andthe problem appears regular as measured by the gradient
ans = 0
9100>> fsolve('exp(x)-3*x
^2',4)Equation solved
fsolve completed because the vector of function values is near zeroas measured by