Skip to content

Commit 136027c

Browse files
june128jiegillet
authored andcommitted
Input the correct value for radius. (#310)
* Input the correct ratio for radius - length
1 parent 113e6d4 commit 136027c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contents/monte_carlo_integration/monte_carlo_integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ How could they possibly be used to find non-random values?
1010
Well, imagine you have a square.
1111
The area of the square is simple, $$\text{Area}_{\text{square}} = \text{length} \times \text{width}$$.
1212
Since it's a square, the $$\text{length}$$ and $$\text{width}$$ are the same, so the formula is technically just $$\text{Area}_{\text{square}} = \text{length}^2$$.
13-
If we embed a circle into the square with a radius $$r = \text{length}$$ (shown below), then it's area is $$\text{Area}_{\text{circle}}=\pi r^2$$.
13+
If we embed a circle into the square with a radius $$r = \tfrac{length}{2}$$ (shown below), then its area is $$\text{Area}_{\text{circle}}=\pi r^2$$.
1414
For simplicity, we can also say that $$\text{Area}_{\text{square}}=4r^2$$.
1515

1616
<p>

0 commit comments

Comments
 (0)