Symbolic Algebra MCP Server

by sdiehl

differentiate_expression

Compute derivatives of mathematical expressions with respect to a specified variable using SymPy. Supports custom orders of differentiation for precise mathematical analysis and problem-solving.

Instructions

Differentiates an expression with respect to a variable using SymPy's diff function.

Args: expr_key: The key of the expression (previously introduced) to differentiate. var_name: The name of the variable to differentiate with respect to. order: The order of differentiation (default is 1 for first derivative). Example: # Introduce a variable intro("x", [Assumption.REAL], []) # Create an expression to differentiate: x^3 expr_key = introduce_expression("x**3") # First derivative first_deriv = differentiate_expression(expr_key, "x") # Returns 3x² # Second derivative second_deriv = differentiate_expression(expr_key, "x", 2) # Returns 6x Returns: A key for the differentiated expression.

Input Schema

NameRequiredDescriptionDefault
expr_keyYes
orderNo
var_nameYes

Input Schema (JSON Schema)

{ "properties": { "expr_key": { "title": "Expr Key", "type": "string" }, "order": { "default": 1, "title": "Order", "type": "integer" }, "var_name": { "title": "Var Name", "type": "string" } }, "required": [ "expr_key", "var_name" ], "title": "differentiate_expressionArguments", "type": "object" }

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