mc_convergencia_1d
Calculate cumulative running averages to show how Monte Carlo integration converges with increasing sample count, providing insight into numerical estimate stability for a function over an interval.
Instructions
Show how the mean-value Monte Carlo estimate converges as samples accumulate.
Args: func_str: Math expression in x. a, b: Integration limits (b > a). N: Total number of samples. seed: Optional RNG seed. precision: Rounding digits.
Returns: Dict with the cumulative running average over the samples.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| N | No | ||
| a | Yes | ||
| b | Yes | ||
| seed | No | ||
| func_str | Yes | ||
| precision | No |