monte_carlo_estimate
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "monte_carlo_estimate"
}
}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 |