设[img=186x25]180360b0ecb7f3a.png[/img],欲求y的一阶导数和y = 0的所有根,并求x =[-4,4]区间y的函数值,且间隔0.5计算一个值,则以下哪个程序正确?
A: a=[3,0,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=polyval(a,x)
B: a=[3,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=polyval(a,x)
C: a=[3,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=3* x.^5+7* x.^3+2* x.^2+9* x+2 plot(x,y)
D: a=[3,0,7,2,9,12] y1=polyder(a) r=roots(a) y=3* x^5+7* x^3+2* x^2+9* x+2 plot(x,y)
A: a=[3,0,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=polyval(a,x)
B: a=[3,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=polyval(a,x)
C: a=[3,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=3* x.^5+7* x.^3+2* x.^2+9* x+2 plot(x,y)
D: a=[3,0,7,2,9,12] y1=polyder(a) r=roots(a) y=3* x^5+7* x^3+2* x^2+9* x+2 plot(x,y)
举一反三
- 设[img=186x25]180345a2cb629bd.png[/img],欲求y的一阶导数和y = 0的所有根,并求x =[-4,4]区间y的函数值,且间隔0.5计算一个值,则以下哪个程序正确? A: a=[3,0,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=polyval(a,x) B: a=[3,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=polyval(a,x) C: a=[3,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=3* x.^5+7* x.^3+2* x.^2+9* x+2 plot(x,y) D: a=[3,0,7,2,9,12] y1=polyder(a) r=roots(a) y=3* x^5+7* x^3+2* x^2+9* x+2 plot(x,y)
- 设[img=186x25]18035a4f2d135da.png[/img],欲求y的一阶导数和y = 0的所有根,并求x =[-4,4]区间y的函数值,且间隔0.5计算一个值,则以下哪个程序正确? A: a=[3,0,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=polyval(a,x) B: a=[3,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=polyval(a,x) C: a=[3,7,2,9,12] y1=polyder(a) r=roots(a) x= -4:0.5:4 y=3* x.^5+7* x.^3+2* x.^2+9* x+2 plot(x,y) D: a=[3,0,7,2,9,12] y1=polyder(a) r=roots(a) y=3* x^5+7* x^3+2* x^2+9* x+2 plot(x,y)
- 设有下列语句序列:(x>;1)and(y<;=5)thenz←x*y;sez←x+y;z=12thenz←2*z。用判定条件覆盖法进行测试,则应选用()为测试用例。 A: x=1,y=12;x=4,y=7 B: x=2,y=1;x=3,y=3 C: x=3,y=4;x=1,y=9 D: x=4,y=5;x=1,y=6
- 下列哪条语句是正确的( ) A: A=[1 2;3 4];B=[3;7];A.*B; B: A=cell(2,3);A(1,2)=[4;5]; C: A=[2 3 5 7;9 4 6 1;7 3 2 5];B=[1 7;0 5];A(2:end,2:2:end) D: x=-5:5;y=-5:5;z=x.*x-y.*y;surf(x,y,z);
- 双曲线x^2/16-y^2/9=1的渐近线方程为() A: y=±16x/9 B: y=±9x/16 C: x/3±y/4=0 D: x/4±y/3=0