Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Coin Flip Equilibrium Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Coin Flip Equilibrium 

written by Todd Timberlake

The EJS Coin Flip Equilibrium model simulates a a simple system of N coins arranged in ordered rows. The coins all begin heads up. At each step of the simulation one or more coins are chosen at random and flipped over.   Separate windows show the set of coins, a plot of the number of heads/tails after each step, the entropy of the system after each step, and a histogram of the occurrences of a given number of heads.  The user can  change the number of coins and the number of coins flipped at each step of the simulation. A user can modify this simulation if EJS is installed locally by right-clicking within the plot and selecting "Open Ejs Model" from the pop-up menu item.

EJS Coin Flip Equilibrium model was created using the Easy Java Simulations (EJS) modeling tool.  It is distributed as a ready-to-run (compiled) Java archive.   Double clicking the ejs_CoinFlip.jar file will run the program if  Java is installed.  EJS is a part of the Open Source Physics Project and is designed to make it easier to access, modify, and generate computer models.  Additional EJS models are available.  They can be found by searching ComPADRE for  Open Source Physics, OSP, or EJS.

Last Modified May 30, 2013

This file has previous versions.

Source Code Documents

Coin Flip Equilibrium Source Code 

The source code zip archive contains an XML representation of the EJS Coin Flip Equilibrium Model.   Unzip this archive in your EJS workspace to compile and run this model using EJS.

This material is released under the GNU General Public License Version 2.

Published June 14, 2010
Last Modified June 15, 2010

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics