Question: N=1000 function that returns +50% and -50% Create two arrays: one to store n_steps x positions and the other n_steps y positions. Create a loop
N=1000
function that returns +50% and -50%
Create two arrays: one to store n_steps x positions and the other n_steps y positions.
Create a loop that will set the x and y arrays to store their respective positions at each time step. Inside this loop, use an if..else logic statement to set an initial positions aorigin if its at its 1st step, and x and y positions sould be random steps in x and y.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
