Skip to content

Calculating PI using randomly generated numbers made in WPF

Notifications You must be signed in to change notification settings

rafal-k4/Calculating-number-PI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculating Number π

Calculation of π in this project is proced using random generated numbers and relationship between field of a circle and a square. Knowing the fact that circle inscribed in square share the same length of diameter as the side of a square we can derive the formula of PI number which is:

equation

Based on this formula we can calculate the approximate value of the number PI

In this program Pcircle and Psquare are the number of dots that are randomly placed either in circle field or square field.

Accuracy of calculated π number strictly depends on randomness of the generated random numbers

About

Calculating PI using randomly generated numbers made in WPF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages