78trust / 100

Micro Exact Linear System

by Exact Linear-System Solver in Productivity & SaaS

x402 APIPassing, checked 2 h ago

Get an inspectable exact solution to a 1-8 variable rational linear system. Returns rank, pivots, particular solution and null space; distinguishes unique, inconsistent and underdetermined systems. No floating-point conditioning or physical-model assessment.

POST https://www.mahastrategies.com/api/v1/micro/exact-linear-system

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
561 ms typical, 833 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://www.mahastrategies.com/api/v1/micro/exact-linear-system" \
  -H "content-type: application/json" \
  -d '{"dataClass":"synthetic","matrix":[["2","1"],["1","-1"]],"rhs":["5","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%2Fwww.mahastrategies.com%2Fapi%2Fv1%2Fmicro%2Fexact-linear-system
const res = await pay("https://www.mahastrategies.com/api/v1/micro/exact-linear-system", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"dataClass":"synthetic","matrix":[["2","1"],["1","-1"]],"rhs":["5","1"]}),
});
console.log(await res.json());

Example input

{
  "dataClass": "synthetic",
  "matrix": [
    [
      "2",
      "1"
    ],
    [
      "1",
      "-1"
    ]
  ],
  "rhs": [
    "5",
    "1"
  ]
}

Example output

{
  "amountBaseUnits": "11000",
  "boundaries": [
    "Public or synthetic inputs only. Caller labels are declarations,…"
  ],
  "inputDigest": "sha256:ce85c2d89d174bce2a7c9dfa608e93e4e1ec251f4ff2a8b4a41e6b13c…",
  "offerId": "exact-linear-system",
  "receiptDigest": "sha256:edf602f2b3f9a58f790d8014c11c47726d79a645e1030828d66853aae…",
  "result": {
    "conditioningAssessed": false,
    "exactResidualVerified": true,
    "freeColumns": [],
    "nullspace": [],
    "particular": [
      {
        "denominator": "1",
        "numerator": "2"
      }
    ],
    "pivotColumns": [
      0
    ],
    "rank": 2,
    "state": "unique"
  },
  "version": "maha-microproducts/0.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 agoPassed402516 ms$0.011
6 h agoPassed402416 ms$0.011
9 h agoPassed402833 ms$0.011
13 h agoPassed402620 ms$0.011
16 h agoPassed402289 ms$0.011
19 h agoPassed402561 ms$0.011
24 h agoPassed4021.3 s$0.011