Changes

Jump to: navigation, search

Kernal Blas

18 bytes removed, 15:36, 21 February 2018
Calculation of Pi
When we run the program we see:
====== '''1st Run ======
1000 3.152 - took - 0 millisecs
10000 3.1328 - took - 0 millisecs
10000000 3.1417368 - took - 998 millisecs
100000000 3.1419176 - took - 10035 millisecs
''The first column represents the "stride" or the number of digits of pi we are calculating to.
With this method, we can see that the accuracy of the calculation is slightly off. This is due to the randomization of points within the circle. Running the program again will give us slightly different results.
====== ''' 2nd Run ======
1000 3.12 - took - 0 millisecs
10000 3.1428 - took - 0 millisecs
96
edits

Navigation menu