simon_6981

5 Reputation

One Badge

8 years, 269 days

MaplePrimes Activity


These are questions asked by simon_6981

If a particle that moves in only one dimension is subject to a force Fi between the time

steps ti and ti+1, the velocity vi and position xi of the particle is:

 

v[i] := v[i − 1] +(1/m)*F[i]*Δt

x[i] := x[i − 1] + 0.5 (v[i − 1] + v[i])                   

 

Use the mean of v between ti and ti+1 when updating xi, since the value may change

a lot from step to step. In the subsequent, we set the mass m = 1 and the time steps

are Δt = 1, since we could absorb m and Δt in the expression for the force Fi anyway.

 

Write a procedure that computes xi and vi for a particle subject to random forces Fi,

uniformly distributed on the interval [-0.5..0.5].

 

I`ve written a procedure that generates random forces (F[i]) in the given interval. How can I write a for – procedure that computes xi and vi ?

Page 1 of 1