Skip to main content
POST
/
quantlib
/
numerical
/
linalg
/
solve
Solve Linear System Ax = b
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/numerical/linalg/solve \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "A": [
    [
      3,
      1
    ],
    [
      1,
      2
    ]
  ],
  "b": [
    9,
    8
  ]
}
'
{
  "success": true,
  "data": {
    "x": [
      2,
      3
    ]
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
A
number[][]
required

Coefficient matrix (n × n, must be non-singular)

Example:
[[3, 1], [1, 2]]
b
number[]
required

Right-hand side vector (n × 1)

Example:
[9, 8]

Response

Successful Response

success
boolean
Example:

true

data
object