78trust / 100

Solve

by Solve a linear system in Productivity & SaaS

x402 APIPassing, checked 2 h ago

Solve the linear system A·x = b for a square coefficient matrix A and vector b via Gaussian elimination with partial pivoting. A non-square A or a b of the wrong length is a clean 400. A singular system is NOT an error — it returns a successful { solvable:false, solution:null }.

POST https://matrix.openverbs.com/v1/solve

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
600 ms typical, 735 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://matrix.openverbs.com/v1/solve" \
  -H "content-type: application/json" \
  -d '{"a":[[1]],"b":[1]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmatrix.openverbs.com%2Fv1%2Fsolve
const res = await pay("https://matrix.openverbs.com/v1/solve", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"a":[[1]],"b":[1]}),
});
console.log(await res.json());

Example input

{
  "a": [
    [
      1
    ]
  ],
  "b": [
    1
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402749 ms$0.004
6 h agoPassed402588 ms$0.004
9 h agoPassed402602 ms$0.004
14 h agoPassed402594 ms$0.004
17 h agoPassed402563 ms$0.004
20 h agoPassed402735 ms$0.004
25 h agoPassed402600 ms$0.004