linear_solve
Solves systems of linear equations Ax = b using Gaussian elimination with partial pivoting, returning the solution vector for square coefficient matrices and right-hand side vectors.
Instructions
Solve a system of linear equations Ax = b using Gaussian elimination with partial pivoting.
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": {
"matrix": "<matrix>",
"vector": "<vector>"
},
"name": "linear_solve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix | Yes | Coefficient matrix A (square, 2D array). | |
| vector | Yes | Right-hand side vector b. |