pi_approx
Approximate pi using Leibniz, Nilakantha, and Wallis formulas, then compare their convergence rates for a specified number of terms.
Instructions
Approximate pi using Leibniz, Nilakantha, and Wallis formulas. Compare convergence rates.
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": "pi_approx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | No | Number of terms (default 1000, max 1000000). |