arithmetic_sum
Calculate the sum of an arithmetic sequence using the formula n/2 * (2a + (n-1)d). Provide the first term, common difference, and number of terms to compute the total sum.
Instructions
Calculate the sum of an arithmetic sequence using the formula: n/2 * (2a + (n-1)d). (Domain: arithmetic, Category: general)
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": {
"first_term": "<first_term>",
"common_diff": "<common_diff>",
"num_terms": "<num_terms>"
},
"name": "arithmetic_sum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first_term | Yes | ||
| common_diff | Yes | ||
| num_terms | Yes |