Simulation, Monte Carlo, Quantum Physics, Computation, Physics.
given position on our viewing screen x = np.random.uniform(-.001,.001) p = Diffraction(a,d,lamb,l,x) rand = np.random.uniform(0,1) if (p >= rand): return x #Parameters of our system m= 9.1*10**-31 #Mass of electron v= 5*10**5 #velocity lamb = 6.62*10**-34/(m*v) #de broglie wavelength, scaled to be