You, sir (or madam), are my hero. I don't know what was wrong with my code, but when I used your simplified version and plotted the results, I got the most beautiful pair of exponential curves I have ever seen!
Now I'll be awake for the rest of the night trying to figure out what was wrong...
Haha, yes, I just realized that as soon as I replied to your post. I've modified my code (below) but I still have the same problem. I'll keep tinkering...
while(ni > 0) // Stop when no electrons remain in state i
{
k = 0;
while(k < ni) // Loop through all electrons in state i...
Homework Statement
I have to simulate a two-level electron scattering process. 1000 electrons start in state i and over time, end up in state f. I need to plot the number of electrons in each state as a function of time.
Homework Equations
None.
The Attempt at a Solution
The probability...
Homework Statement
Tertiary neutrino and muon beams can be formed using pion -> muon + neutrino decays from a high intensity, high energy secondary pion beam. Consider a secondary pion beam of 100 GeV/c momentum and assume that the neutrinos have a mass of a few eV. Within what angular cone...