AT-FS08 · Maths in code
Monte Carlo Estimation of Pi
Throws random points at a square and circle to estimate pi, with a live picture of the points.
- Suits
- 1st year
- Branches
- CSE, ISE, AIML
- Type
- Software
How it works
The program places random points inside a square that has a quarter circle drawn in it. Points that fall inside the circle are counted separately. The ratio of points inside the circle to the total, multiplied by four, gives an estimate of pi. The points appear live on screen, and a graph shows the estimate getting closer to the true value as the number of points grows.
What it does
- Live animation
- Accuracy against sample size
- Result graph
Built with
Python, Matplotlib
What you get
- Working software with full source code
- Steps to install and run it on your laptop
- Rough report and explanation of the working
- Live demo on video call before the final payment
Good to know
- Features are as listed here. Anything extra is quoted separately.
- Runs on a normal laptop unless we tell you otherwise.
- Full reports and PPTs are not included.
Similar projects
- AT-FS01Matrix CalculatorEnter two matrices and get addition, multiplication, determinant and inverse with steps shown.
- AT-FS02Graphing Calculator for FunctionsType any function of x and see its graph, with zoom and several curves on one plot.
- AT-FS03Number System ConverterConverts numbers between binary, decimal, octal and hexadecimal and shows the working.
- AT-FS04Differential Equation Solver (Euler's Method)Solves a first-order differential equation step by step and plots the result against the exact answer.