1
edit
Changes
→Assignment 1
== 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===