// Numbas version: finer_feedback_settings {"name": "Chained inequality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Chained inequality", "tags": [], "metadata": {"description": "

This question applies a rewriting rule to the student's answer and correct answer, to interpret chained inequalities $a<b<c$ and $a>b>c$ as $(a<b) \\wedge (b<c)$ and $(a>b) \\wedge (b>c)$ respectively.

\n

This is a work-around until the parser interprets chained relations this way automatically.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "variables": {"expr": {"name": "expr", "group": "Ungrouped variables", "definition": "expression(\"a ?;b > ?;c\", \"a>b and b>c\", \n base_studentExpr\n ))\n\ncorrectExpr:\n replace(\"?;a < ?;b < ?;c\", \"a ?;b > ?;c\", \"a>b and b>c\", \n base_correctExpr\n ))", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write $a<b<c$ or anything equivalent.

", "answer": "a