{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.quadratic.agent.input.json",
  "title": "Quadratic formula — agent input",
  "type": "object",
  "properties": {
    "a": {
      "type": [
        "number",
        "string"
      ],
      "maxLength": 512,
      "description": "Finite binary64 number or <=512-character strict decimal/scientific, en-US grouped number or integer fraction; nonzero textual underflow rejects. Aliases must agree."
    },
    "aInput": {
      "type": [
        "number",
        "string"
      ],
      "maxLength": 512,
      "description": "Finite binary64 number or <=512-character strict decimal/scientific, en-US grouped number or integer fraction; nonzero textual underflow rejects. Aliases must agree."
    },
    "b": {
      "type": [
        "number",
        "string"
      ],
      "maxLength": 512,
      "description": "Finite binary64 number or <=512-character strict decimal/scientific, en-US grouped number or integer fraction; nonzero textual underflow rejects. Aliases must agree."
    },
    "bInput": {
      "type": [
        "number",
        "string"
      ],
      "maxLength": 512,
      "description": "Finite binary64 number or <=512-character strict decimal/scientific, en-US grouped number or integer fraction; nonzero textual underflow rejects. Aliases must agree."
    },
    "c": {
      "type": [
        "number",
        "string"
      ],
      "maxLength": 512,
      "description": "Finite binary64 number or <=512-character strict decimal/scientific, en-US grouped number or integer fraction; nonzero textual underflow rejects. Aliases must agree."
    },
    "cInput": {
      "type": [
        "number",
        "string"
      ],
      "maxLength": 512,
      "description": "Finite binary64 number or <=512-character strict decimal/scientific, en-US grouped number or integer fraction; nonzero textual underflow rejects. Aliases must agree."
    },
    "rhs": {
      "type": [
        "number",
        "string"
      ],
      "maxLength": 512,
      "description": "Finite binary64 number or <=512-character strict decimal/scientific, en-US grouped number or integer fraction; nonzero textual underflow rejects. Aliases must agree."
    },
    "d": {
      "type": [
        "number",
        "string"
      ],
      "maxLength": 512,
      "description": "Finite binary64 number or <=512-character strict decimal/scientific, en-US grouped number or integer fraction; nonzero textual underflow rejects. Aliases must agree."
    },
    "mode": {
      "type": "string",
      "description": "Published mode/operator aliases; exact canonicalization followed by applicability checks."
    },
    "op": {
      "type": "string",
      "description": "Published mode/operator aliases; exact canonicalization followed by applicability checks."
    },
    "relation": {
      "type": "string",
      "description": "Published mode/operator aliases; exact canonicalization followed by applicability checks."
    },
    "inequality": {
      "type": "string",
      "description": "Published mode/operator aliases; exact canonicalization followed by applicability checks."
    }
  },
  "allOf": [
    {
      "anyOf": [
        {
          "required": [
            "a"
          ]
        },
        {
          "required": [
            "aInput"
          ]
        }
      ]
    },
    {
      "anyOf": [
        {
          "required": [
            "b"
          ]
        },
        {
          "required": [
            "bInput"
          ]
        }
      ]
    },
    {
      "anyOf": [
        {
          "required": [
            "c"
          ]
        },
        {
          "required": [
            "cInput"
          ]
        }
      ]
    }
  ],
  "additionalProperties": false,
  "description": "Solve ax² + bx + c = 0, or ax² + bx + c ○ rhs for ○ in {<,≤,>,≥}. Sign of a is the outside of the roots. Inequality discovery /quadratic-inequality. Not cubic, not CAS factoring.. Mode-discriminated agent contract. Named fields are canonical; a/b are legacy share-URL aliases. (calculation_version 1.1.2)"
}
