Join free to take this lesson
Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.
9 steps · about 25 min
By the end you can
- Make random points in a square from two arrays of random numbers
- Test which points are inside a quarter circle with x2 + y2 < 1
- Estimate π as 4 × inside ÷ N
- Work out the error of the estimate against np.pi
Who it is for: Anyone who has done lesson 17.1, and physics lesson 3.1 (Pythagoras).
The steps
- A circle in a square
- The test for inside
- Inside or outside?
- What share?
- From a count to π
- Your estimate of π
- How far off?
- Two seeds
- Why estimate π?
Discussion 0 comments
Log in to join the discussion.