compute_pi_leibniz
Calculate pi by specifying the number of terms in the Leibniz series formula π/4 = 1 - 1/3 + 1/5 - 1/7 + ...
Instructions
Compute pi using the Leibniz formula: π/4 = 1 - 1/3 + 1/5 - 1/7 + ... (Domain: arithmetic, Category: mathematical_constants)
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": {
"terms": "<terms>"
},
"name": "compute_pi_leibniz"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | Yes |