Catalog/geometry-matrix-inverse

Geometry

Matrix inverse 2x2/3x3 API

Inverse of a 2x2 or 3x3 matrix via the adjugate/cofactor method, throwing on singular input. Answers 'what is the inverse of this matrix?'.

Price$0.02per request
MethodPOST
Route/v1/geometry/matrix-inverse
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
matrixinverseadjugatecofactorlinear-algebra
API URLhttps://x402.hexl.dev/v1/geometry/matrix-inverse
Integration docs
Example request
{
  "matrix": [
    [
      4,
      7
    ],
    [
      2,
      6
    ]
  ]
}
Example response
{
  "inverse": [
    [
      0.6,
      -0.7
    ],
    [
      -0.2,
      0.4
    ]
  ],
  "determinant": 10,
  "size": 2
}
Input schema
{
  "type": "object",
  "required": [
    "matrix"
  ],
  "properties": {
    "matrix": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      },
      "examples": [
        [
          [
            4,
            7
          ],
          [
            2,
            6
          ]
        ]
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}