monte_carlo_estimate
Read-onlyIdempotent
Estimate pi or compute a definite integral using random sampling, with optional bounds, expression, sample count, and seed for reproducible Monte Carlo results.
Instructions
Monte Carlo estimation: estimate pi or compute a definite integral via random sampling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Lower bound for integral | |
| b | No | Upper bound for integral | |
| seed | No | Random seed for reproducibility | |
| method | No | Estimation method (default pi) | |
| samples | No | Number of random samples (default 10000, max 10000000) | |
| expression | No | JS expression in x for integral method |