calculate_summation
Calculate symbolic summations for finite and infinite series, returning LaTeX-formatted results with convergence conditions.
Instructions
Calculate symbolic summation.
═══════════════════════════════════════════════════════════════════════
🆕 NOT AVAILABLE IN SYMPY-MCP!
═══════════════════════════════════════════════════════════════════════
Use cases:
- Finite sums (Σ from n=1 to N)
- Infinite series (Σ from n=1 to ∞)
- Partition functions
- Probability mass functions
Args:
expression: The summand (term being summed)
index: Summation index variable
lower: Lower bound (integer or symbol)
upper: Upper bound (integer, symbol, or "oo" for infinity)
Returns:
Summation result with LaTeX
Examples:
# Finite sum: Σ k from k=1 to n
calculate_summation("k", "k", "1", "n")
→ {"result": "n*(n+1)/2", ...}
# Infinite geometric series: Σ r^n from n=0 to ∞
calculate_summation("r**n", "n", "0", "oo")
→ {"result": "1/(1-r)", "condition": "|r| < 1"}
# Partition function: Σ exp(-E_i/(k*T)) from i=0 to N
calculate_summation("exp(-E*i/(k*T))", "i", "0", "N")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| lower | Yes | ||
| upper | Yes | ||
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||