{
  "tool": "matric-nqf4.maths_nature_of_roots",
  "name": "Nature of the roots (CDU-GEN-NSC-400)",
  "answers": "Whether ax² + bx + c = 0 has two distinct real, equal real, or non-real roots, from the discriminant alone.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "CAPS Grade 12 Mathematics, worked reference M3 (offline reconstruction); Δ > 0 distinct real, Δ = 0 equal real, Δ < 0 non-real",
  "endpoint": "/faculty/matric-nqf4/maths_nature_of_roots",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "a",
      "b",
      "c"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "a": {
        "type": "number",
        "description": "coefficient of x² (a ≠ 0)",
        "minimum": -100,
        "maximum": 100
      },
      "b": {
        "type": "number",
        "description": "coefficient of x",
        "minimum": -1000,
        "maximum": 1000
      },
      "c": {
        "type": "number",
        "description": "constant term",
        "minimum": -10000,
        "maximum": 10000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "discriminant",
      "nature"
    ],
    "properties": {
      "discriminant": {
        "type": "number",
        "description": "Δ = b² − 4ac"
      },
      "nature": {
        "type": "string",
        "description": "two distinct real roots | equal real roots | non-real (complex) roots"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "a": 1,
    "b": 2,
    "c": 5
  }
}