Pi computer

This applet is based upon an article from the April 1995 Math Monthly. It makes use of an elegant representation of Pi, which may be treated like a sum of fractional terms. To generate digits, a multiplication by 10 is performed, and the next digit is plucked off at one end of the chain of terms after performing all necessary carry-overs from term to term. If the applet doesn't show, then try a version compiled for Java 1.1 Virtual Machines.

Since this is an applet, it will run on the computer of the person viewing this page. Once the parameters are adjusted to obtain a desired format, the text may by copied and pasted elsewhere. Note: this Java program does NOT make use of the BigInteger class.

Failure to run may include error messages (in the Java console) which cite "error loading class" or "java.lang.NoClassDefFoundError" or "java.lang.ClassNotFoundException". These messages are due to classes being tagged with what version of Java environment they'll run in, and the Java environment on your computer will complain when it can't find a class compiled for it.

One further note: the width of the applet on this web page is set to 90% of the width of the window. If a smaller or larger text area is desired, simply resize the browser window and reload the page.