{
  "tool": "higher-certificate.calc2_trapezium",
  "name": "Calculus II — numerical integration (CDU-GEN-HC-500)",
  "answers": "The trapezium-rule estimate of ∫ f for f(x) = ax² + bx + c over [lo, hi] with k strips, against the exact value.",
  "degree": {
    "id": "competency:higher-certificate",
    "code": "CDU-GEN-HC-500",
    "name": "Higher Certificate in Foundation Studies (January 2027 intake)",
    "version": "1.0.0"
  },
  "reference": "Shared Year 1 — Calculus II (January 2027 intake); trapezium rule with the exact antiderivative check",
  "endpoint": "/faculty/higher-certificate/calc2_trapezium",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "a",
      "b",
      "c",
      "lo",
      "hi",
      "strips"
    ],
    "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²",
        "minimum": -100,
        "maximum": 100
      },
      "b": {
        "type": "number",
        "description": "coefficient of x",
        "minimum": -100,
        "maximum": 100
      },
      "c": {
        "type": "number",
        "description": "constant",
        "minimum": -1000,
        "maximum": 1000
      },
      "lo": {
        "type": "number",
        "description": "lower limit",
        "minimum": -1000,
        "maximum": 1000
      },
      "hi": {
        "type": "number",
        "description": "upper limit (> lo)",
        "minimum": -1000,
        "maximum": 1000
      },
      "strips": {
        "type": "number",
        "description": "strips (whole, 1–1000)",
        "minimum": 1,
        "maximum": 1000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "estimate",
      "exact"
    ],
    "properties": {
      "estimate": {
        "type": "number",
        "description": "trapezium estimate (4 d.p.)"
      },
      "exact": {
        "type": "number",
        "description": "exact integral (4 d.p.)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "a": 1,
    "b": 0,
    "c": 1,
    "lo": 0,
    "hi": 2,
    "strips": 4
  }
}