Skip to main content
Glama

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

NameRequiredDescriptionDefault
aNoLower bound for integral
bNoUpper bound for integral
seedNoRandom seed for reproducibility
methodNoEstimation method (default pi)
samplesNoNumber of random samples (default 10000, max 10000000)
expressionNoJS expression in x for integral method

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

Score is being calculated.

Deploy Server

Other Tools