https://github.com/agriyakhetarpal/montecarlomethods
https://github.com/agriyakhetarpal/montecarlomethods
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/agriyakhetarpal/montecarlomethods
- Owner: agriyakhetarpal
- Created: 2021-03-03T13:57:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-03T14:02:58.000Z (over 4 years ago)
- Last Synced: 2025-03-16T23:49:19.479Z (3 months ago)
- Language: MATLAB
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MonteCarloMethods
A simple code that aims to solve the mathematical conundrum derived from the popular idiom "The straw that broke the camel's back". This code has been provided in the form of a MATLAB script which runs using three user-defined functions and uses the Monte Carlo methods to compute the answer to the riddle, which comes out to be 2 - e/2
The loop runs from 1 to 30, which means that the approximation(s) is/are done upto a massive value of 2^30 = 1,07,37,41,824 times to improve the accuracy of the method.