Changes

Jump to: navigation, search

DPS915/CodeKirin

431 bytes added, 10:21, 4 December 2014
Calculations of Pi
For optimization, I tried using reduction, however it didn't seem to speed up the program.
 
 
'''Different Approach'''
 
Another approach to do this is by using a different algorithm, as the one I used at first. However, that program will only go up to 9 significant digits, since anything over will go above the maximum value of a float. This program shows an execution time of 0.05 seconds for all values entered by the user, but will require to use the BigNumber library or such in order to show more significant digits.
1
edit

Navigation menu