{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.numerical.optimize_1d/1.0.0/input.json",
  "title": "One-dimensional optimization — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "golden",
        "brent"
      ]
    },
    "integrand": {
      "type": "string",
      "enum": [
        "poly",
        "sin",
        "exp"
      ]
    },
    "a": {
      "type": "number"
    },
    "b": {
      "type": "number"
    },
    "tol": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1
    },
    "coeffs": {
      "type": "string",
      "description": "c0,c1,…,cn constant first"
    }
  },
  "required": [
    "a",
    "b"
  ],
  "description": "Minimize a polynomial, sin, or exp on [a, b] by golden-section search or Brent. Not multivariate, not maximization, not CAS. (calculation_version 1.0.0)"
}
