Skip to main content
Glama

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
NameRequiredDescriptionDefault
expr_keyYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sdiehl/sympy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server