File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ The directory can be different based on the system of the machine and the versio
146146
147147You can check the location of your ` __init__.py ` for NumPy in python by running the code:
148148
149- ``` {code-cell } ipython
149+ ``` {code-block } ipython
150150:class: no-execute
151151
152152import numpy as np
@@ -735,11 +735,11 @@ n = 1000000 # sample size for Monte Carlo simulation
735735count = 0
736736for i in range(n):
737737
738- # drawing random positions on in the square
738+ # drawing random positions on the square
739739 u, v = np.random.uniform(), np.random.uniform()
740740
741741 # check whether the point falls within the boundary
742- # of the semi-circle located at (0.5,0.5)
742+ # of the semi-circle centred at (0.5,0.5)
743743 d = np.sqrt((u - 0.5)**2 + (v - 0.5)**2)
744744
745745 # if it falls within the inscribed semi-circle,
You can’t perform that action at this time.
0 commit comments