Info
Warning
Danger
/ Homework Answers / Computer Science / Question Each walker begins at the origin and at each time-step

Question

Question

Each walker begins at the origin and at each time-step it takesa step to the right or left with equal probability, so that pright= 0.5, pleft = 0.5. Use a lattice of spacing ?x=1 and discretetime-steps, ?t=1. Number of steps in each walk: 20 Number ofwalkers: 10,000. Create a c++ program to find the Mean squaredisplacement vs. time, for time from t = 0, 1, 2, 3... 20. Plotthis data and fit a straight line to the curve and find the slopeof the curve. Can you define a physics concept that describes whatthis slope represents? How would you call it? Explain.

Solution
5 (1 Ratings )

Solved
Computer Science 1 Month Ago 35 Views
This Question has Been Answered!
Premium Content -