已知多项式a(x)=x^3+6x+2,b(x)=〖2x〗^2+6x+8,要完成两个多项式相加、相乘和相除(a(x))/(b(x))的运算,则以下哪个程序正确( )
A: a= [1 0 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) E=deconv(a,b)
B: a= [1 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) [q,r]=deconv(a,b)
C: a= [1 0 6 2]; b= [2 6 8]; C=a+(0,b) D=conv(a,b) [q,r]=deconv(a,b)
D: a= [1 0 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) [q,r]=deconv(a,b)
A: a= [1 0 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) E=deconv(a,b)
B: a= [1 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) [q,r]=deconv(a,b)
C: a= [1 0 6 2]; b= [2 6 8]; C=a+(0,b) D=conv(a,b) [q,r]=deconv(a,b)
D: a= [1 0 6 2]; b= [2 6 8]; C=a+b D=conv(a,b) [q,r]=deconv(a,b)
举一反三
- set1 = {x for x in range(10) if x%2==0} print(set1) 以上代码的运行结果为? A: {0, 2, 4, 6} B: {2, 4, 6, 8} C: {0, 2, 4, 6, 8} D: {4, 6, 8}
- 如上图所示实例,以下测试用例哪一组不能够满足判定覆盖________。 A: (a=2,b=0,x=6)、(a=1,b=0,x=1) B: (a=2,b=0,x=4)、(a=3,b=0,x=2) C: (a=2,b=2,x=2)、(a=3,b=0,x=6) D: (a=2,b=0,x=6)、(a=2,b=0,x=4)
- 已知\( y = \ln (6 - {x^2}) \),则\( y' \)为( ). A: \( { { 2x} \over {6 - {x^2}}} \) B: \( { { - 2x} \over {6 - {x^2}}} \) C: \( {1 \over {6 - {x^2}}} \) D: \( { { {x^2}} \over {6 - {x^2}}} \)
- 若有a = [2*x for x in range(4)],语句print(a)输出为 A: [2, 4, 8,16] B: [2, 4, 6, 8] C: [1, 2, 4, 8] D: [0, 2, 4, 6]
- set1 = {x for x in range(10)} print(set1) 以上代码的运行结果为? A: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} B: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10} C: {1, 2, 3, 4, 5, 6, 7, 8, 9} D: {1, 2, 3, 4, 5, 6, 7, 8, 9,10}