Skip to content

An approximation of π calculated via Monte Carlo method and proposed in Jupyter Notebook. A solution for Computer Simulation (40634-1 Sharif UT, Spring 2023) homework, the 1st series.

Notifications You must be signed in to change notification settings

ashkan-khd/Monte-Carlo-Method-Pi-Approx

Repository files navigation

Approximating π with Monte Carlo Methods

A Solution provided for the 1st series of homework, Computer Simulation course, 40634 Sharif UT, Spring 2023 (course page).
The provided notebook resolves the following five problems,

  1. Using Monte Carlo's method, Find an approximation (numerical solution) for π. A recommended topology is provided on this Wikipedia page.
  2. Provide a convergence diagram (to exact π) of multiple setups for your proposed method.
  3. Run two more simulations for approximation of π with the same inputs that were used in part 1. Compare the results with the previous ones.
  4. What probability distributions were used in part a? Are there any other options for the probability distributions that are used in the model?
  5. Use the Monte Carlo method for estimating the area of an ellipse with the following equation, $$5x^2-6xy+5y^2-32=0$$ See the notebook for the solutions and more information.

Official Problem Set

The official problem set (from the first series of computer simulation homework) is also provided here. However, since it is in Farsi it may not be preferable for all.

About

An approximation of π calculated via Monte Carlo method and proposed in Jupyter Notebook. A solution for Computer Simulation (40634-1 Sharif UT, Spring 2023) homework, the 1st series.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published