"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
the uninterpreted source code file.
2 Here are some sample programs (C & C++) to
3 calculate PI.
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.
10 The fastest algorithm I came across for PI
11 is actually used the library (mapm_cpi.c)
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.
18 M. Ring