Bonjour,
Vérification par l'exemple statistique:
from numpy.random import rand
N, S, pi = 10000000, 0, 3.14159265358979
for n in range(N):
x, y = 10*rand(), 10*rand()
if x**2+y**2>9:
S+=1
p=1-9*pi/400
print((S/N,p))
Résultat: $(0.9293741, 0.9293141652942297)$
Cordialement,
Rescassol