Simulation, Monte Carlo, Quantum Physics, Computation, Physics.
Distance to screen in meters def Diffraction(a,d,lamb,l,x): #Calculating some constants c = (np.pi*d)/(lamb*l) k = (np.pi*a)/(lamb*l) #Probability function probability = ((np.cos(c))**2)*(((np.sin(k*x))/(k*x))**2) return probability def MonteCarlo(a,d,lamb,l): #Monte carlo throw for a particle at a