Faculty banner

CITS3402 High Performance Computing
Laboratory Sheet 3

CITS3402 High Performance Computing

High performance computation of Pi

In this lab, we will write progressively more efficient computation of Pi (yes, that 3.14.... constant). First, the idea of approximating the value of Pi is explained in these two videos, video 1 and video 2.
Please remember that it is not necessary to know calculus for completing this lab, but it will be helpful if you follow the explanations in the video.

The sequential code for approximating Pi is here.

You can find the first 100,000 digits of Pi from this web page. You should compare your output with these digits to see how accurately your program is approximating Pi.


Amitava Datta
August 2018

Visit the UWA Computer Science home page School of Computer Science & Software Engineering
The University of Western Australia
Crawley, Western Australia, 6009.
Phone: +61 8 9380 2716 - Fax: +61 8 9380 1089.
CRICOS provider code 00126G
Valid HTML 4.01!