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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | No | Number of terms (default 1000, max 1000000). |