Open main menu

CDOT Wiki β

Changes

Kernal Blas

2 bytes added, 14:39, 21 February 2018
Calculation of Pi
=== Assignment 1 ===
==== Calculation of Pi ====
For this assessment, I we used code found at [https://helloacm.com/cc-coding-exercise-finding-approximation-of-pi-using-monto-carlo-algorithm/ helloacm.com]
In this version, the value of PI is calculated using the Monte Carlo method.
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.
96
edits