"Fossies" - the Fresh Open Source Software Archive

Member "mapm_4.9.5a/PI_DEMO/README" (21 Feb 2010, 509 Bytes) of package /linux/misc/old/mapm-4.9.5a.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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