Skip to content

thomasw1000/Monte-Carlo-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Monte-Carlo-Project

I wrote this program in the second year of my Physics degree as part of a computing module I undertook. This project shows a combination of computing and statistical methods in order to evaluate the value of $ln(2)$. This is achieved using the fact that the area under the curve $1/(x+1)$ is given by $ln(2)$ on the interval $[0,1]$. Thus, if several points are randomly generated in the unit square, the proportion of points under the curve will give the required value.
Note, part of the code at the end has been disabled as it generates a pdf on the user's computer. This is so that files are not unintentionally created on the user's computer, and can be enabled if desired. If you wish to use this, note that if a second pdf is generated to replace the first, the first cannot be open in another tab.

About

An example of a computing project I completed recently

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages