{
  "tool": "matric-nqf4.maths_trig_general_solution",
  "name": "General solution of a trig equation (CDU-GEN-NSC-400)",
  "answers": "Solve p·sinθ = q on [0° ; 360°] with the general solution, refusing |q/p| > 1 because sine never leaves [−1 ; 1].",
  "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 M14 (offline reconstruction); sinθ = k ⇒ θ = α + 360°k or 180° − α + 360°k",
  "endpoint": "/faculty/matric-nqf4/maths_trig_general_solution",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "p",
      "q"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "p": {
        "type": "number",
        "description": "coefficient of sinθ (p ≠ 0)",
        "minimum": -100,
        "maximum": 100
      },
      "q": {
        "type": "number",
        "description": "right-hand side",
        "minimum": -100,
        "maximum": 100
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "alpha",
      "solution1",
      "solution2"
    ],
    "properties": {
      "alpha": {
        "type": "number",
        "description": "the reference angle (°)"
      },
      "solution1": {
        "type": "number",
        "description": "first solution in [0 ; 360] (°)"
      },
      "solution2": {
        "type": "number",
        "description": "second solution in [0 ; 360] (°)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "p": 2,
    "q": 1
  }
}