WOLFRAM LANGUAGE FEATURED EXAMPLE

Particle Moving between Two Barriers

The collision times for a particle moving between two barriers are distributed exponentially, with a mean of three microseconds. If the particle starts at the right-hand barrier () and moves toward the left-hand barrier (), then simulate the collision process for 100 microseconds.

    
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
Variance for the slice distribution is 1:
In[4]:=
Click for copyable input
Out[4]=
Compare with the variance of a sample:
In[5]:=
Click for copyable input
Out[5]=