Difference between revisions of "DPS915/CodeKirin"

From CDOT Wiki
Jump to: navigation, search
(Progress)
(Assignment 1)
Line 24: Line 24:
 
[[File:Profile_a1(million).JPG]]
 
[[File:Profile_a1(million).JPG]]
  
Value of 10 Million
+
'''Value of 10 Million'''
  
 
[[File:Profile_a1(10 million).JPG]]
 
[[File:Profile_a1(10 million).JPG]]
  
Value of 100 Million
+
'''Value of 100 Million'''
  
 
[[File:Profile_a1(100 million).JPG]]
 
[[File:Profile_a1(100 million).JPG]]
  
Value of 1 Billion
+
'''Value of 1 Billion'''
  
 
[[File:Profile_a1(billion).JPG]]
 
[[File:Profile_a1(billion).JPG]]

Revision as of 16:09, 30 October 2014

Calculations of Pi

Team Member

  1. Tony Yu

Progress

Assignment 1

Findings

The code used is taken from the following site http://www.cplusplus.com/forum/beginner/1149/ with some changes to the code.

This program will calculate pi to a precision based on the value entered by the user. Currently it displays to a precision of 9 decimal places.

Will attempt to figure out a way to calculate to as much decimal places as possible, which should drastically increase the time it takes to run the program. Currrent possible solution is to use the BigNumber library.

(Updated)

The code used is taken from the following site https://helloacm.com/cc-coding-exercise-finding-approximation-of-pi-using-monto-carlo-algorithm/ with some changes to it.

This program will calculate pi using the Monte Carlo approach to a precision based on the value entered by the user.

Value of 1 Million

Profile a1(million).JPG

Value of 10 Million

Profile a1(10 million).JPG

Value of 100 Million

Profile a1(100 million).JPG

Value of 1 Billion

Profile a1(billion).JPG

Assignment 2

Assignment 3