simplify_expression
Simplify mathematical expressions using SymPy's functionality in the Symbolic Algebra MCP Server. Input an expression key to reduce complexity and obtain a streamlined result.
Instructions
Simplifies a mathematical expression using SymPy's simplify function.
Args:
expr_key: The key of the expression (previously introduced) to simplify.
Example:
# Introduce variables
intro("x", [Assumption.REAL], [])
intro("y", [Assumption.REAL], [])
# Create an expression to simplify: sin(x)^2 + cos(x)^2
expr_key = introduce_expression("sin(x)**2 + cos(x)**2")
# Simplify the expression
simplified = simplify_expression(expr_key)
# Returns 1
Returns:
A key for the simplified expression.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr_key | Yes |