symbolic_sum
Computes closed-form symbolic sums and products over an index variable, including infinite series. Use it to evaluate summations like 1/n^2 exactly instead of numeric approximation.
Instructions
Closed form of a symbolic sum or product over an index variable, including infinite series. Prefer this over evaluate_sage for summations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lower | No | Lower bound (e.g. '1') | 1 |
| upper | No | Upper bound (e.g. 'oo' for infinity) | oo |
| product | No | If true, compute a product instead of a sum | |
| session | No | Workspace to use, as a name or a portable handle. Workspaces have independent variables. A name is scoped to this MCP session; a handle returned by start_sage_session (workspace_token) reaches the same workspace across reconnects and is a bearer credential -- keep it secret. Omit for 'default'. | default |
| variable | No | Index variable (e.g. 'n') | n |
| expression | Yes | Expression to sum (e.g. '1/n^2') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||