sconemad

technology, scones, nonsense

Loading...

Profiles

Twitter

GitHub

Launchpad

Subscribe to my RSS Feed

Admin

Radioactive decay

Posted on Tue 16 Jul 2002

A simple Java applet to demonstrate the exponential nature of radioactive decay.

(you will need Java installed in order to view the applet)

The program simulates 40,000 radioactive nuclei, shown in a 200x200 grid on the left. These all start off as undecayed (shown in red). During each timestep of the simulation, each nuclei is given a random chance to decay, simulated by a pseudo-random number. The nuclei are redrawn in black once decayed, and the total number of undecayed nuclei at each timestep are plotted on the graph on the right.

Download source code

Updated on 2010-03-30 16:29:17 +0000 | Requested on 2019-03-18 15:27:04 +0000