commands → montecarlo

montecarlo(f,x,y,x0,x1,y0,y1)

The montecarlo command computes an approximate area for the region where f(x,y) is true inside x0 <= x <= x1 and y0 <= y <= y1.

Examples

montecarlo(x^2+y^2 < 1,x,y,-1,1,-1,1);
	3.14156579971313