feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

14
pymontecarlo.py Normal file
View File

@@ -0,0 +1,14 @@
from random import random
n = 100000000
din = 0
for i in range(n):
x = random()
y = random()
if x**2 + y**2 <= 1:
din += 1
print((din / n)*4)