[2006-07-13]


[2006-07-13]

High-Precision Arithmetic - Calculation of Pi to Arbitrary Number of Significant Digits

Following is an implementation in C++ of a high-precision arithmetic programme for the calculation of pi to an arbirary number of significant digits. The implementation is similar to that of the programme for calculating e, presented earlier in this section. The programme can be run in parallel on any number of networked compute nodes that can be logged on to with a single account sharing the same home drive (e.g., an NFS share) across all compute nodes. This programme does not require parallel computing libraries such as MPI, nor is it dependent on OpenMP-aware compilers.

To run this programme, please read the article regarding the parallel programme for calculating e. All the instructions pertatining to that programme should be followed, except the make command should be make pi followed make longadd (or make all instead of both commands).