</h1> <h2>Status: <code id="statusField">NO-STATUS</code></h2> <p> The Native Client module executed in this page creates a thread that estimates pi (π) using the Monte Carlo method. The thread randomly puts 1,000,000,000 points inside a square that shares two sides with a quarter circle (a quadrant). Because the area of the quadrant is r²π/4 and the area of the square is r², dividing the number of points inside the quadrant by the number of points inside the square gives us an estimate of π/4. The textbox under the square shows the current estimate of π. </p> <!-- The NaCl plugin will be embedded inside the element with id "listener". See common.js.--> <div id="listener"></div> <input type="text" size="15" id="pi"> </body> </html>