Skip to main content
Glama

solve_linear_system

Solves systems of linear equations with specified variables and domains, returning results as LaTeX-formatted solution sets. Powered by SymPy’s symbolic algebra capabilities.

Instructions

Solves a system of linear equations using SymPy's linsolve.

Args: expr_keys: The keys of the expressions (previously introduced) forming the system. var_names: The names of the variables to solve for. domain: The domain to solve in (Domain.COMPLEX, Domain.REAL, etc.). Defaults to Domain.COMPLEX. Returns: A LaTeX string representing the solution set. Returns an error message string if issues occur.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainNocomplex
expr_keysYes
var_namesYes

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