Random Walk, Laplace Equation, Poisson Equation, Brownian Motion, Maxwell Boltzmann.
0.05): #delta_t: dividor of grid width '''generate the exit time from the boundary after starting at v=(x,y) using random numbers returns anlalytical solution value and the exit vector''' w = v.copy() exit = False while not exit: rvs = np.random.binomial(1, 0.5, size=2) rvs[rvs==0] = -1 w +=