{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.quadratic/1.1.1/input.json",
  "title": "Quadratic formula — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "a": {
      "type": "number",
      "description": "Quadratic coefficient a ≠ 0"
    },
    "b": {
      "type": "number",
      "description": "Linear coefficient"
    },
    "c": {
      "type": "number",
      "description": "Constant term"
    },
    "mode": {
      "type": "string",
      "enum": [
        "solve",
        "inequality"
      ]
    },
    "op": {
      "type": "string",
      "enum": [
        "lt",
        "le",
        "gt",
        "ge"
      ],
      "description": "Inequality operator for mode=inequality"
    },
    "rhs": {
      "type": "number",
      "description": "Right-hand side for mode=inequality (default 0)"
    }
  },
  "required": [
    "a",
    "b",
    "c"
  ],
  "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. (calculation_version 1.1.1)"
}
