Open main menu

CDOT Wiki β

Changes

Team Titans

553 bytes removed, 04:09, 15 October 2015
Calculation of Pi
== Progress ==
=== Assignment 1 ===
===Calculation of Pi===
 
 
I decided on finding a technique which is the most efficient way to calculate pi. I found one way of doing this on http://www.codecodex.com/wiki/Calculate_digits_of_pi. By parallelizing the code, it could reduce the computation time considerably.
 
After profiling, I get the following results:
 
Flat profile:
 
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
100.00 1.56 1.56 pi_digits(int)
 
===Image Manipulation===