1 2 Here are some sample programs (C & C++) to 3 calculate PI. 4 5 Note that these are not the fastest methods 6 to compute PI, these are here simply for 7 illustration. These programs could be used 8 as a starting template for a new program. 9 10 The fastest algorithm I came across for PI 11 is actually used the library (mapm_cpi.c) 12 13 I included a short build script for use 14 under Linux and generic Unix using gcc. 15 It should be relatively easy to build these 16 demo programs using other O/S's / compilers. 17 18 M. Ring 19 1-2-2004 20