Skip to main content
POST
/
quantlib
/
numerical
/
interpolation
/
spline-derivative
Evaluate Cubic Spline Derivative
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/numerical/interpolation/spline-derivative \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "x_data": [
    0,
    1,
    2,
    3
  ],
  "y_data": [
    0,
    1,
    4,
    9
  ],
  "xi": 1.5,
  "bc_type": "natural"
}
'
{
  "success": true,
  "data": {
    "xi": 1.5,
    "derivative": 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
x_data
number[]
required

X coordinates of data points

Example:
[0, 1, 2, 3]
y_data
number[]
required

Y coordinates of data points

Example:
[0, 1, 4, 9]
xi
number
required

Point at which to evaluate the derivative

Example:

1.5

bc_type
enum<string>
default:natural

Boundary condition type

Available options:
natural,
clamped,
periodic
Example:

"natural"

Response

Successful Response

success
boolean
Example:

true

data
object