{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.numerical.interpolate/1.1.0/input.json",
  "title": "Numerical interpolation — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "linear",
        "lagrange",
        "spline"
      ]
    },
    "x": {
      "type": "number",
      "description": "Abscissa at which to evaluate y."
    },
    "points": {
      "type": "string",
      "description": "x,y; x,y pairs (semicolon-separated)"
    },
    "x0": {
      "type": "number"
    },
    "y0": {
      "type": "number"
    },
    "x1": {
      "type": "number"
    },
    "y1": {
      "type": "number"
    },
    "extrapolate": {
      "type": "boolean",
      "description": "If true, linear and spline use the end piece outside [x_min, x_max]."
    }
  },
  "required": [
    "x"
  ],
  "description": "Piecewise-linear, Lagrange, or natural cubic spline of tabulated (x, y). Not regression, not CAS. (calculation_version 1.1.0) Provide at least 1 of: points, x0."
}
