bai9 sin(a*x) cos(b*x)sin(c*x)./cos(d*x);

function bai9

a= input(' nhap a:');

b= input(' nhap b:');

c= input(' nhap c:');

d= input(' nhap d:');

e= input(' nhap e:');

f= input(' nhap f:');

x=linspace(-10,10,100);

y1=sin(a*x);

y2=cos(b*x);

y3=sin(c*x)./cos(d*x);

y4=sin(e*x).*cos(f*x);

subplot(2,2,1)

plot(x,y1)

title('sin(x)');

subplot(2,2,2)

plot(x,y3)

title('cos(x)');

subplot(2,2,3)

plot(x,y3)

title('sin(x)/cos(x)');

subplot(2,2,4)

plot(x,y4)

title('sin(x)*cos(x');

Bạn đang đọc truyện trên: AzTruyen.Top

Tags: #magic