Matrix solve linear

matrix-solve-linear · version 1.0.0 · Vectors & matrices · free, no key needed

Solve the small square linear system A x = b for x using Gaussian elimination.

Use when you need to: solve linear system · solve Ax=b · linear equation solver.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": [
    [
      2,
      1
    ],
    [
      1,
      3
    ]
  ],
  "b": [
    3,
    5
  ]
}

Response:

{
  "result": {
    "result": [
      0.8,
      1.4
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "matrix-solve-linear",
  "version": "1.0.0",
  "input": {
    "a": [
      [
        2,
        1
      ],
      [
        1,
        3
      ]
    ],
    "b": [
      3,
      5
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/matrix-solve-linear/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":[[2,1],[1,3]],"b":[3,5]}'

The machine-readable contract is at /v1/tools/matrix-solve-linear/versions/1.0.0.

CLI

node cli.mjs run matrix-solve-linear 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.