程序如下:x=linspace(0,4*pi,100);y1=sin(x);y2=cos(x);y3=sin(x)./(cos(x)+eps);y4=cos(x)./(sin(x)+eps);subplot(2,2,1); plot(x,y1),title('sin(x)');subplot(2,2,2); plot(x,y2),title('cos(x)');subplot(2,2,3); plot(x,y3),title('sin

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 13:18:36
程序如下:x=linspace(0,4*pi,100);y1=sin(x);y2=cos(x);y3=sin(x)./(cos(x)+eps);y4=cos(x)./(sin(x)+eps);subp

程序如下:x=linspace(0,4*pi,100);y1=sin(x);y2=cos(x);y3=sin(x)./(cos(x)+eps);y4=cos(x)./(sin(x)+eps);subplot(2,2,1); plot(x,y1),title('sin(x)');subplot(2,2,2); plot(x,y2),title('cos(x)');subplot(2,2,3); plot(x,y3),title('sin
程序如下:
x=linspace(0,4*pi,100);
y1=sin(x);
y2=cos(x);
y3=sin(x)./(cos(x)+eps);
y4=cos(x)./(sin(x)+eps);
subplot(2,2,1); plot(x,y1),title('sin(x)');
subplot(2,2,2); plot(x,y2),title('cos(x)');
subplot(2,2,3);  plot(x,y3),title('sin(x)/cos(x)');
subplot(2,2,4); plot(x,y4),title('cos(x)/sin(x)');
 


 

 

 

 

 

 

 

 

 

 

 

 

 

 
(1)对下面有关程序的功能的说法不正确的是(        )
(A)绘制了三角函数sinx,cosx,tanx,cotx的图像; 
(B)分割了图形窗口;
(C)用4个窗口分别显示了sinx,cosx,tanx,cotx的图像;; 
(D)同时将4个图形按 绘制在同一窗口中;
(2)第四行与第5行语句中eps的功能是(        )
(A)避免除法没有意义;(B)为得到精确值;
(C)分数表示; (D)小数表示.

程序如下:x=linspace(0,4*pi,100);y1=sin(x);y2=cos(x);y3=sin(x)./(cos(x)+eps);y4=cos(x)./(sin(x)+eps);subplot(2,2,1); plot(x,y1),title('sin(x)');subplot(2,2,2); plot(x,y2),title('cos(x)');subplot(2,2,3); plot(x,y3),title('sin
(!)D
(2)B