solve_linear_system
Solves a system of linear equations from previously introduced expressions for specified variables and returns the solution set as a LaTeX string, with optional domain selection.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expr_keys": "<expr_keys>",
"var_names": "<var_names>"
},
"name": "solve_linear_system"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | complex | |
| expr_keys | Yes | ||
| var_names | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |