Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from matplotlib.pylab import *
- def f1(t):
- return t**4*exp(-t**4)
- def f2(t):
- return t**2*f1(t)
- figure()
- subplot(2, 1, 1)
- t=linspace(0, 3, 51)
- y1=f1(t)
- plot(t, y1)
- xlabel('x')
- ylabel('y')
- legend(['pierwsza funkcja'])
- axis([0, 3, -0.1, 0.7])
- title('jeden')
- subplot(2, 1, 2)
- t=linspace(0, 6, 51)
- y2=f2(t)
- plot(t, y2)
- xlabel('x')
- ylabel('y')
- legend(['druga funkcja'])
- axis([0, 3, -0.1, 0.7])
- title('dwa')
- savefig('wykres2w1.png')
- show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement