Evaluate Expression
evaluate_expressionSymbolically evaluate math expressions with SymPy: compute derivatives, integrals, series expansions, and closed forms from expressions like 'diff(sin(x)*x, x)'.
Instructions
Use evaluate_expression, not calc_exact, for something other than plain arithmetic on literal values. Symbolically evaluate to a value or closed form via sympify: 'sqrt(144) + 2**10'. Not simplification — for simplified/factored/expanded forms, use symbolic(op="simplify").
Also reaches calculus forms no other tool exposes: diff(expr, x)
(derivative), integrate(expr, x) / integrate(expr, (x, a, b))
(indefinite/definite), and series(expr, x, x0, n) (Taylor expansion) —
see this parameter's own examples.
Returns value (if the result is a number) or the evaluated
expression, plus type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | Symbolic math expression to evaluate via SymPy, e.g. 'integrate(x**2, x)', 'diff(sin(x)*x, x)', 'series(sin(x), x, 0, 6)', 'sqrt(144) + 2**10' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||