Skip to main content
POST
/
quantlib
/
numerical
/
roots
/
find-nd
Find Root of System of Equations
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/numerical/roots/find-nd \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "system": "nonlinear_2x2",
  "x0": [
    1.5,
    1
  ],
  "method": "newton",
  "tol": 1e-10
}
'
{
  "success": true,
  "data": {
    "root": [
      1.7320508,
      0.5773503
    ],
    "iterations": 5,
    "converged": true
  }
}

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
system
enum<string>
required

System of equations to solve

Available options:
linear_2x2,
nonlinear_2x2
Example:

"nonlinear_2x2"

x0
number[]
required

Initial guess for the solution (number of elements = number of equations)

Example:
[1.5, 1]
method
enum<string>
default:newton

Solution method

Available options:
newton,
broyden
Example:

"newton"

tol
number
default:1e-10

Convergence tolerance

Example:

1e-10

params
number[]

System-specific parameters (for linear_2x2: [a,b,c,d,e,f] for ax+by+c=0, dx+ey+f=0)

Example:
[1, 1, -3, 2, -1, -1]

Response

Successful Response

success
boolean
Example:

true

data
object