daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import gauss
  2.  
  3. # gauss(mu, sigma)
  4.  
  5. def angles_M1(n, alpha, gamma, sigma):
  6.     A = []
  7.     A.append( gauss(0, (alpha**2.0)/16.0) )
  8.     for i in range(1,n+1):
  9.         A.append( gauss(-(gamma**4.0)*A[i-1]/2.0, (alpha**2.0)/16.0 + (sigma**2.0)*A[i-1]/alpha) )
  10.     return A
  11.    
  12. def distantes_M1(n, delta):
  13.     A = []
  14.     for i in range(n):
  15.         A.append( gauss(delta, (delta**2.0)/64) )
  16.     return A
  17.    
  18. if __name__=="__main__":
  19.     A = angles_M1(15, 22.5, 0.04, 0.2)
  20.     for a in A:
  21.         print(a)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top