Get lost ----------------------- * **Topic:** random walks, particle density, diffusion, brownian motion * **Task A:** 1. Implement a function to make the lattice-bound random walker take unit steps on a grid. 2. Simulate the motion of a single particle and check that the simulator works. 3. Simulate the motion of, say, 10000 particles. 4. Study the distribution of these particles as a function of time. What does this tell us about diffusion? * **Task B:** 1. Implement a function to have the freely moving particle from previous lecture take normally distributed random steps. 2. Simulate this random walk. * **Templates:** - `random_walk_lattice.py `_ - `random_walk_free.py `_ * **Further reading:** - https://en.wikipedia.org/wiki/Random_walk - https://en.wikipedia.org/wiki/Diffusion - https://en.wikipedia.org/wiki/Brownian_motion random_walk_lattice.py ####################### .. automodule:: random_walk_lattice :members: :undoc-members: random_walk_free.py ##################### .. automodule:: random_walk_free :members: :undoc-members: