harmonic_series
Computes the partial sum of the harmonic series H(n) = 1 + 1/2 + ... + 1/n for a specified number of terms up to 100,000.
Instructions
Calculate partial sum of the harmonic series H(n) = 1 + 1/2 + 1/3 + ... + 1/n.
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": {
"n": "<n>"
},
"name": "harmonic_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Number of terms (1-100000). |