Monte Carlo estimate of π (CPU/CUDA)
simulate_piEstimate pi with seeded Monte Carlo and a 95% Wilson interval; up to 5 million samples. CPU or optional CUDA. Other direct scientific engines run on CPU.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"samples": "<samples>",
"seed": "<seed>"
},
"name": "simulate_pi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | ||
| backend | No | cpu | |
| samples | Yes | ||
| device_ids | No |