SHARE
TWEET

Untitled

a guest Aug 18th, 2011 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2.  
  3. from scipy.stats import uniform
  4. from numpy import sort
  5. import matplotlib.pyplot as plt
  6.  
  7. x = uniform.rvs(0,1,size=10000)
  8. y = uniform.rvs(0,1,size=10000)
  9.  
  10. plt.title("Produto de duas variaveis uniformes")
  11. plt.plot(sort(x*y))
  12. plt.show()
  13.  
  14. plt.cla()
  15. plt.clf()
  16. plt.title("Soma de duas variaveis uniformes")
  17. plt.plot(sort(x+y))
  18. plt.show()
RAW Paste Data
Top