Changes

Jump to: navigation, search

Kernal Blas

318 bytes added, 15:07, 21 February 2018
Calculation of Pi
With this, we randomly generate points within the area and count the number of times each point falls within the circle, between 0 and 1. We then calculate the ratio and
multiply by 4 which will give us the approximation of Π.
When we run the program we see:
 
1000 3.152 - took - 0 millisecs
10000 3.1328 - took - 0 millisecs
100000 3.14744 - took - 9 millisecs
1000000 3.141028 - took - 96 millisecs
10000000 3.1417368 - took - 998 millisecs
100000000 3.1419176 - took - 10035 millisecs
=== Assignment 2 ===
=== Assignment 3 ===
96
edits

Navigation menu