diff options
Diffstat (limited to 'examples/pi.dx')
-rw-r--r-- | examples/pi.dx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pi.dx b/examples/pi.dx index b01a49d5..98b31bca 100644 --- a/examples/pi.dx +++ b/examples/pi.dx @@ -13,7 +13,7 @@ 'To compute $\pi$, randomly sample points in the first quadrant unit square to estimate the $\frac{A_{quadrant}}{A_{square}}$ ratio. Then, multiply by $4$. def estimatePiArea(key:Key) -> Float = - [k1, k2] = split_key key + [k1, k2] = split_key(n=2, key) x = rand k1 y = rand k2 inBounds = (sq x + sq y) < 1.0 |