% 16-raqam Tog‘ayeva Zarina
x=-pi:pi/10:pi;
plot(x,abs(sin(x)),'-.r*')
hold on
plot(x,exp(-x).*cos(x),'--mo')
plot(x,x.^3.*abs(cos(x)),':bs')
hold off
% legend funksiyasi
x=-pi:pi/10:pi;
plot(x,abs(sin(x)),'-.r*')
hold on
plot(x,exp(-x).*cos(x),'--mo')
plot(x,x.^3.*abs(cos(x)),':bs')
hold off
grid on
legend('y = |sin(x)|','y = e^{-x}cos(x)','y = x^3|cos(x)|')
% stem funksiyasi yordamida grafik chizish
x=-pi:pi/10:pi;
f1=abs(sin(x));
f2=exp(-x).*cos(x);
f3=x.^3.*abs(cos(x));
stem(x,f1,'r')
hold on
stem(x,f2,'b')
stem(x,f3,'g')
hold off
title('Funksiyalarning diskret grafigi')
xlabel('x')
ylabel('y')
legend('f1','f2','f3')
grid on
To embed this project on your website, copy the following code and paste it into your website's HTML: