summation
Computes the sum of a function over a specified range by evaluating an expression at each integer step.
Instructions
Calculates the summation of a function from start to end.
Args: expression: The expression of function x as a string. start: The starting value of the summation. end: The ending value of the summation.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> summation("x**2", 0, 10) {'result': 385}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No | ||
| expression | Yes |