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
Name | Required | Description | Default |
---|---|---|---|
expr_key | Yes |
Input Schema (JSON Schema)
{
"properties": {
"expr_key": {
"title": "Expr Key",
"type": "string"
}
},
"required": [
"expr_key"
],
"title": "simplify_expressionArguments",
"type": "object"
}