calculator
Evaluate mathematical and statistical expressions using Python syntax. Supports arithmetic, list operations, and math/stat functions with custom variables.
Instructions
Safely evaluates a mathematical or statistical expression string using Python syntax.
Supports arithmetic operations (+, -, *, /, **, %, //), list expressions, and a range of math and statistics functions: abs, round, min, max, len, sum, mean, median, stdev, variance, sin, cos, tan, sqrt, log, exp, floor, ceil, etc.
Custom variables can be passed via the 'variables' dict, including lists for time series data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variables | Yes | ||
| expression | Yes |