
PI
--

This short program originally appeared in the Nov/Dec 1983 issue
of Sync magazine (an American Timex/Sinclair mag).  It was written
by Blanchard Smith for the ZX81.  It uses base 100 arithmetic and
Taylor polynomials to calculate pi to 2,4,8,16,... places.  The
number of places pi is calculated to is determined by variable j
in line 30 (off the top of my head ... it's the for loop near the
beginning of the listing) and follows the formula given in the
REM statement at the beginning of the listing.

The snap is a TS2068 version (converted to ASCII and a few incompatible
ZX81 string statements were fixed - bet you didn't know that the ZX81
string assignments don't function the same way as the Spectrum's!) and
will work on the Spectrum.

Alvin Albrecht 
sealbrec@acs.ucalgary.ca
albrecht@FreeNet.Calgary.ab.ca

