Monte Carlo Method, Python Programming, Pi Day.
figure, axes = plt.subplots() plt.scatter(x, y, c='blue') axes.set_aspect(1) axes.add_artist(plt.Circle((0,0),1, color = 'k', fill = False)) plt.xlim(left=-1) plt.xlim(right=1) plt.ylim(bottom=-1) plt.ylim(top=1) pi_estimate= (inside_quadrant/N)*4 outside_quadrant=N-inside_quadrant plt.title('Pi