{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.numerical.root/1.1.3/input.json",
  "title": "Numerical root — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "newton",
        "bisection",
        "secant"
      ]
    },
    "integrand": {
      "type": "string",
      "enum": [
        "poly",
        "sin",
        "exp"
      ]
    },
    "coeffs": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 9
        }
      ],
      "description": "c0,c1,…,cn constant first; not all zero"
    },
    "coefficients": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 9
        }
      ],
      "description": "Alias of coeffs; c0,c1,…,cn constant first; not all zero"
    },
    "x0": {
      "type": "number"
    },
    "x1": {
      "type": "number"
    },
    "a": {
      "type": "number"
    },
    "b": {
      "type": "number"
    },
    "tol": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Default 1e-10. Coefficient-scaled residual for poly, absolute residual for sin, or bracket half-width for bisection."
    },
    "max_iter": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Maximum updates or midpoint evaluations; default 50."
    }
  },
  "description": "Newton, bisection, or secant for an approximate real zero of a polynomial or sin. exp has no finite real zero and returns NO_CONVERGENCE. Discovery /nonlinear-equation. Not the nth-root page, not CAS, not a system. (calculation_version 1.1.3) Provide at least 1 of: coeffs, coefficients, integrand."
}
