mc_valor_promedio_2d
Estimate a double integral over a rectangular region using mean-value Monte Carlo sampling, with an optional scatter plot of sampled points colored by function value.
Instructions
Estimate the double integral of f(x, y) over [x_a,x_b]×[y_a,y_b] by mean value.
With plot=True a PNG scatter of the sampled points coloured by f(x, y)
is returned as [dict, Image] alongside the numeric result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| N | No | ||
| x_a | Yes | ||
| x_b | Yes | ||
| y_a | Yes | ||
| y_b | Yes | ||
| plot | No | ||
| seed | No | ||
| func_str | Yes | ||
| precision | No | ||
| nivel_confianza | No |