// Numbas version: finer_feedback_settings {"name": "44. Inequalities", "metadata": {"description": "

Questions on understanding inequality notation and solving inequalities

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], [], []], "questions": [{"name": "44.a Understanding notation for inequalities", "extensions": ["chemistry", "jsxgraph", "permutations", "polynomials", "quantities", "random_person", "stats", "visjs"], "custom_part_types": [{"source": {"pk": 28, "author": {"name": "Marie Nicholson", "pk": 1799}, "edit_page": "/part_type/28/edit"}, "name": "True/False", "short_name": "true-false", "description": "

The answer is either 'True' or 'False'

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["True", "False"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"True\"", "help_url": "", "hint": "", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}, {"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}, {"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}], "tags": [], "metadata": {"description": "

Identify the truth value of an inequality (T/F) between two numbers

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Inequality Notation

", "advice": "

The symbol is a comparitor that $<$ says that the object to its left is less than the object to its right. Similarly, $>$ says the object to its left is greater than the object to its right.

\n

In each case the sentence can be read in two ways e.g. $a<b$ can be read as \"$a$ is less than $b$\" OR \"$b$ is greater than $a$\".

\n

The symbol $\\leq$ just changes the sentence to include \"...or equal to...\". This can be of particular relevance when dealing with integers (whole numbers) e.g. $x \\geq 4$ and $x$ is a whole number means that $x$ could be $4, 5, 6,$ or $7$ and so on. Whereas, $x>4$ and $x$ is a whole number means that $x$ could be $5,6,$... etc. Notably in the second case $x$ cannot be $4$.

\n

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..15)", "description": "", "templateType": "anything", "can_override": false}, "operations": {"name": "operations", "group": "Ungrouped variables", "definition": "[latex(\"\\\\gt\"),latex(\"\\\\ge\")]", "description": "", "templateType": "anything", "can_override": false}, "values": {"name": "values", "group": "Ungrouped variables", "definition": "[a,-random(1..15),random(1..15),random(1..15)]", "description": "", "templateType": "anything", "can_override": false}, "disp_values": {"name": "disp_values", "group": "Ungrouped variables", "definition": "shuffle(values)[0..2]", "description": "", "templateType": "anything", "can_override": false}, "disp_op": {"name": "disp_op", "group": "Ungrouped variables", "definition": "operations[random(0,1)]", "description": "", "templateType": "anything", "can_override": false}, "disp_op2": {"name": "disp_op2", "group": "Ungrouped variables", "definition": "operations2[random(0,1)]", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(1..15)", "description": "", "templateType": "anything", "can_override": false}, "operations2": {"name": "operations2", "group": "Ungrouped variables", "definition": "[latex(\"\\\\lt\"),latex(\"\\\\le\")]", "description": "", "templateType": "anything", "can_override": false}, "disp_values2": {"name": "disp_values2", "group": "Ungrouped variables", "definition": "shuffle(values2)[0..2]", "description": "", "templateType": "anything", "can_override": false}, "values2": {"name": "values2", "group": "Ungrouped variables", "definition": "[a2,-random(1..15),random(1..15),random(1..15)]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "operations", "values", "disp_values", "disp_op", "a2", "operations2", "values2", "disp_values2", "disp_op2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "true-false", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Is the following statement true or false?

\n

\\(\\var{disp_values[0]}\\var{disp_op}\\var{disp_values[1]}\\)

\n

", "alternatives": [{"type": "true-false", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "settings": {"correct_answer_expr": "eval(expression(disp_values[0]+if(disp_op=\"\\\\gt\",\">\",\">=\")+disp_values[1]))"}}], "settings": {"correct_answer_expr": "eval(expression(disp_values[0]+if(disp_op=\"\\\\gt\",\">\",\">=\")+disp_values[1]))"}}, {"type": "true-false", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Is the following statement true or false?

\n

\\(\\var{disp_values2[0]}\\var{disp_op2}\\var{disp_values2[1]}\\)

\n

", "settings": {"correct_answer_expr": "eval(expression(disp_values2[0]+if(disp_op2=\"\\\\lt\",\"<\",\"<=\")+disp_values2[1]))"}}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "44.b Addition to solve an inequality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "

Solving an inequality of the form x+a < b

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Solve in the inequality

\n

\\[\\simplify{x+{a1}}\\var{Symb[0]}\\var{a2}.\\]

\n

", "advice": "

We treat inequalities similarly to solving to an equation. We want to get $x$ on its own on one side, in this case we can achieve this by subtracting $\\var{a1}$ from both sides which gives us the following.

\n

\\[\\simplify{x+{a1}}\\var{Symb[0]}\\var{a2}\\]

\n

\\[\\simplify[basic]{x+{a1}-{a1}}\\var{Symb[0]}\\simplify[basic]{{a2}-{a1}}\\]

\n

\\[x\\var{Symb[0]}\\var{a2-a1}\\]

\n

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "Symb": {"name": "Symb", "group": "Ungrouped variables", "definition": "random([latex(\"<\"),\"<\"],[latex(\">\"),\">\"],[latex(\"\\\\geq\"),\">=\"],[latex(\"\\\\leq\"),\"<=\"])", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "expression(\"x\"+Symb[1]+string(a2-a1))", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrix": {"name": "AnsMatrix", "group": "Ungrouped variables", "definition": "if(Symb[1]=SymbolOptions[x],1,0) for: x of: 0..3", "description": "", "templateType": "anything", "can_override": false}, "SymbolOptions": {"name": "SymbolOptions", "group": "Ungrouped variables", "definition": "[\"<\",\"<=\",\">\",\">=\"]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "Symb", "Ans", "AnsMatrix", "SymbolOptions"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

x[[1]][[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a2-a1}", "maxValue": "{a2-a1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["<", "≤", ">", "≥"], "matrix": "AnsMatrix"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "44.c Division to solve an inequality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "

Solving an inequality of the form ax < b

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Solve in the inequality

\n

\\[\\simplify{{a1}x}\\var{Symb[0]}\\var{a1*a2}.\\]

\n

", "advice": "

We treat inequalities similarly to solving to an equation. We want to get $x$ on its own on one side, in this case we can achieve this by dividing $\\var{a1}$ from both sides which gives us the following.

\n

\\[\\simplify{{a1}x}\\var{Symb[0]}\\var{a1*a2}\\]

\n

\\[\\simplify[!all]{{a1}x/{a1}}\\var{Symb[0]}\\simplify[!all]{{a1*a2}/{a1}}\\]

\n

\\[x\\var{Symb[0]}\\var{a2}\\]

\n

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-12..12 except [0,1,-1])", "description": "", "templateType": "anything", "can_override": false}, "Symb": {"name": "Symb", "group": "Ungrouped variables", "definition": "random([latex(\"<\"),\"<\"],[latex(\">\"),\">\"],[latex(\"\\\\geq\"),\">=\"],[latex(\"\\\\leq\"),\"<=\"])", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "expression(\"x\"+Symb[1]+string(a2))", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrix": {"name": "AnsMatrix", "group": "Ungrouped variables", "definition": "if(Symb[1]=SymbolOptions[x],1,0) for: x of: 0..3", "description": "", "templateType": "anything", "can_override": false}, "SymbolOptions": {"name": "SymbolOptions", "group": "Ungrouped variables", "definition": "[\"<\",\"<=\",\">\",\">=\"]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "Symb", "Ans", "AnsMatrix", "SymbolOptions"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

x[[1]][[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a2}", "maxValue": "{a2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["<", "≤", ">", "≥"], "matrix": "AnsMatrix"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "44.d Multiplication to solve an inequality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "

Solving an inequality of the form x/a < b

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Solve in the inequality

\n

\\[\\simplify{x/{a1}}\\var{Symb[0]}\\var{a2}.\\]

\n

", "advice": "

We treat inequalities similarly to solving to an equation. We want to get $x$ on its own on one side, in this case we can achieve this by multiplying $\\var{a1}$ on both sides which gives us the following.

\n

\\[\\simplify{x/{a1}}\\var{Symb[0]}\\var{a2}\\]

\n

\\[\\simplify[!all,alwaysTimes]{x/{a1}*{a1}}\\var{Symb[0]}\\simplify[!all,alwaystimes]{{a2}*{a1}}\\]

\n

\\[x\\var{Symb[0]}\\var{a2*a1}\\]

\n

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-12..12 except [0,1,-1])", "description": "", "templateType": "anything", "can_override": false}, "Symb": {"name": "Symb", "group": "Ungrouped variables", "definition": "random([latex(\"<\"),\"<\"],[latex(\">\"),\">\"],[latex(\"\\\\geq\"),\">=\"],[latex(\"\\\\leq\"),\"<=\"])", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "expression(\"x\"+Symb[1]+string(a2))", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrix": {"name": "AnsMatrix", "group": "Ungrouped variables", "definition": "if(Symb[1]=SymbolOptions[x],1,0) for: x of: 0..3", "description": "", "templateType": "anything", "can_override": false}, "SymbolOptions": {"name": "SymbolOptions", "group": "Ungrouped variables", "definition": "[\"<\",\"<=\",\">\",\">=\"]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "Symb", "Ans", "AnsMatrix", "SymbolOptions"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

x[[1]][[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a1*a2}", "maxValue": "{a1*a2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["<", "≤", ">", "≥"], "matrix": "AnsMatrix"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "44.e Division and addition to solve an inequality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "

Solving an inequality of the form ax+b < c

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Solve in the inequality

\n

\\[\\simplify{{a1}x+{a3}}\\var{Symb[0]}\\var{a1*a2+a3}.\\]

\n

", "advice": "

We treat inequalities similarly to solving to an equation. We want to get $x$ on its own on one side, in this case we can achieve this by first subtracting $\\var{a3}$ and then dividing by $\\var{a1}$ which gives us the following.

\n

\\[\\simplify{{a1}x+{a3}}\\var{Symb[0]}\\var{a1*a2+a3}\\]

\n

\\[\\simplify[basic]{{a1}x+{a3}-{a3}}\\var{Symb[0]}\\simplify[basic]{{a1*a2+a3}-{a3}}\\]

\n

\\[\\simplify{{a1}x}\\var{Symb[0]}\\simplify{{a1*a2}}\\]

\n

\\[\\simplify[!all]{{a1}x/{a1}}\\var{Symb[0]}\\simplify[!all]{{a1*a2}/{a1}}\\]

\n

\\[x\\var{Symb[0]}\\var{a2}\\]

\n

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-12..12 except [0,1,-1])", "description": "", "templateType": "anything", "can_override": false}, "Symb": {"name": "Symb", "group": "Ungrouped variables", "definition": "random([latex(\"<\"),\"<\"],[latex(\">\"),\">\"],[latex(\"\\\\geq\"),\">=\"],[latex(\"\\\\leq\"),\"<=\"])", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "expression(\"x\"+Symb[1]+string(a2))", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrix": {"name": "AnsMatrix", "group": "Ungrouped variables", "definition": "if(Symb[1]=SymbolOptions[x],1,0) for: x of: 0..3", "description": "", "templateType": "anything", "can_override": false}, "SymbolOptions": {"name": "SymbolOptions", "group": "Ungrouped variables", "definition": "[\"<\",\"<=\",\">\",\">=\"]", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "a3", "Symb", "Ans", "AnsMatrix", "SymbolOptions"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

x[[1]][[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a2}", "maxValue": "{a2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["<", "≤", ">", "≥"], "matrix": "AnsMatrix"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "44.f Multiplication and addition to solve an inequality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "

Solving an inequality of the form ax+b < c

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Solve in the inequality

\n

\\[\\simplify{(x+{a3})/{a1}}\\var{Symb[0]}\\var{a2}.\\]

\n

", "advice": "

We treat inequalities similarly to solving to an equation. We want to get $x$ on its own on one side, in this case we can achieve this by first multiplying by $\\var{a1}$ and then subtracting by $\\var{a3}$ which gives us the following.

\n

\\[\\simplify{(x+{a3})/{a1}}\\var{Symb[0]}\\var{a2}\\]

\n

\\[\\simplify[basic,alwaysTimes]{(x+{a3})/{a1}*{a1}}\\var{Symb[0]}\\simplify[alwaysTimes]{{a2}*{a1}}\\]

\n

\\[\\simplify[basic,alwaysTimes]{x+{a3}}\\var{Symb[0]}\\simplify[alwaysTimes]{{a2*a1}}\\]

\n

\\[\\simplify[basic]{x+{a3}-{a3}}\\var{Symb[0]}\\simplify[basic]{{a1*a2}-{a3}}\\]

\n

\\[x\\var{Symb[0]}\\var{a2*a1-a3}\\]

\n

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-12..12 except [0,1,-1])", "description": "", "templateType": "anything", "can_override": false}, "Symb": {"name": "Symb", "group": "Ungrouped variables", "definition": "random([latex(\"<\"),\"<\"],[latex(\">\"),\">\"],[latex(\"\\\\geq\"),\">=\"],[latex(\"\\\\leq\"),\"<=\"])", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "expression(\"x\"+Symb[1]+string(a2))", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrix": {"name": "AnsMatrix", "group": "Ungrouped variables", "definition": "if(Symb[1]=SymbolOptions[x],1,0) for: x of: 0..3", "description": "", "templateType": "anything", "can_override": false}, "SymbolOptions": {"name": "SymbolOptions", "group": "Ungrouped variables", "definition": "[\"<\",\"<=\",\">\",\">=\"]", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "a3", "Symb", "Ans", "AnsMatrix", "SymbolOptions"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

x[[1]][[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a2*a1-a3}", "maxValue": "{a2*a1-a3}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["<", "≤", ">", "≥"], "matrix": "AnsMatrix"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "44.g Division with a negative number to solve an inequality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "

Solving an inequality of the form ax+b < c where a is negative.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Solve in the inequality

\n

\\[\\simplify{{a1}x+{a3}}\\var{Symb[0]}\\var{a1*a2+a3}.\\]

\n

", "advice": "

We treat inequalities similarly to solving to an equation. We want to get $x$ on its own on one side, in this case we can achieve this by first subtracting $\\var{a3}$ and then dividing by $\\var{a1}$. Remember when multiplying or dividing by a negative number we need to flip the inequality symbol. This gives us the following.

\n

\\[\\simplify{{a1}x+{a3}}\\var{Symb[0]}\\var{a1*a2+a3}\\]

\n

\\[\\simplify[basic]{{a1}x+{a3}-{a3}}\\var{Symb[0]}\\simplify[basic]{{a1*a2+a3}-{a3}}\\]

\n

\\[\\simplify{{a1}x}\\var{Symb[0]}\\simplify{{a1*a2}}\\]

\n

\\[\\simplify[!all]{{a1}x/{a1}}\\var{SymbFlipped[0]}\\simplify[!all]{{a1*a2}/{a1}}\\]

\n

\\[x\\var{SymbFlipped[0]}\\var{a2}\\]

\n

\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(-12..2)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-12..12 except [0,1,-1])", "description": "", "templateType": "anything", "can_override": false}, "Symb": {"name": "Symb", "group": "Ungrouped variables", "definition": "random([latex(\"<\"),\"<\"],[latex(\">\"),\">\"],[latex(\"\\\\geq\"),\">=\"],[latex(\"\\\\leq\"),\"<=\"])", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "expression(\"x\"+SymbFlipped[1]+string(a2))", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrixTemp": {"name": "AnsMatrixTemp", "group": "Ungrouped variables", "definition": "if(Symb[1]=SymbolOptions[x],1,0) for: x of: 0..3", "description": "", "templateType": "anything", "can_override": false}, "SymbolOptions": {"name": "SymbolOptions", "group": "Ungrouped variables", "definition": "[\"<\",\"<=\",\">\",\">=\"]", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrix": {"name": "AnsMatrix", "group": "Ungrouped variables", "definition": "[AnsMatrixTemp[2],AnsMatrixTemp[3],AnsMatrixTemp[0],AnsMatrixTemp[1]]", "description": "", "templateType": "anything", "can_override": false}, "SymbFlipped": {"name": "SymbFlipped", "group": "Ungrouped variables", "definition": "if(Symb[1]=\"<\",[latex(\">\"),\">\"],\n if(Symb[1]=\"<=\",[latex(\"\\\\geq\"),\">=\"],\n if(Symb[1]=\">\",[latex(\"<\"),\"<\"],\n [latex(\"\\\\leq\"),\"<=\"])))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "a3", "Symb", "Ans", "AnsMatrixTemp", "SymbolOptions", "AnsMatrix", "SymbFlipped"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

x[[1]][[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a2}", "maxValue": "{a2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["<", "≤", ">", "≥"], "matrix": "AnsMatrix"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "44.h Solving an inequality with variable on both sides", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "tags": [], "metadata": {"description": "

Solving an inequality of the form ax+b < c where a is negative.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Solve in the inequality

\n

\\[\\simplify{{a1}x+{a3}}\\var{Symb[0]}\\simplify{{a2}x+{(a1-a2)*a4+a3}}.\\]

\n

", "advice": "

{Advice}

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(-12..12 except [-1,0,1])", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-12..12 except [0,1,-1])", "description": "", "templateType": "anything", "can_override": false}, "Symb": {"name": "Symb", "group": "Ungrouped variables", "definition": "random([latex(\"<\"),\"<\"],[latex(\">\"),\">\"],[latex(\"\\\\geq\"),\">=\"],[latex(\"\\\\leq\"),\"<=\"])", "description": "", "templateType": "anything", "can_override": false}, "Ans": {"name": "Ans", "group": "Ungrouped variables", "definition": "if(Flipped,expression(\"x\"+SymbFlipped[1]+string(a2)),expression(\"x\"+Symb[1]+string(a2)))", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrix1": {"name": "AnsMatrix1", "group": "Ungrouped variables", "definition": "if(Symb[1]=SymbolOptions[x],1,0) for: x of: 0..3", "description": "", "templateType": "anything", "can_override": false}, "SymbolOptions": {"name": "SymbolOptions", "group": "Ungrouped variables", "definition": "[\"<\",\"<=\",\">\",\">=\"]", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrixFlipped": {"name": "AnsMatrixFlipped", "group": "Ungrouped variables", "definition": "[AnsMatrix1[2],AnsMatrix1[3],AnsMatrix1[0],AnsMatrix1[1]]", "description": "", "templateType": "anything", "can_override": false}, "SymbFlipped": {"name": "SymbFlipped", "group": "Ungrouped variables", "definition": "if(Symb[1]=\"<\",[latex(\">\"),\">\"],\n if(Symb[1]=\"<=\",[latex(\"\\\\geq\"),\">=\"],\n if(Symb[1]=\">\",[latex(\"<\"),\"<\"],\n [latex(\"\\\\leq\"),\"<=\"])))", "description": "", "templateType": "anything", "can_override": false}, "a4": {"name": "a4", "group": "Ungrouped variables", "definition": "random(-12..12 except 0)", "description": "", "templateType": "anything", "can_override": false}, "AdviceIfFlipped": {"name": "AdviceIfFlipped", "group": "Ungrouped variables", "definition": "\"

We treat inequalities similarly to solving to an equation. We want to get $x$ on its own on one side, in this case we can achieve this by first subtracting $\\\\var{a3}$ and $\\\\var{a2}x$ from both sides and and then dividing by $\\\\var{a1}-\\\\var{a2}$. Remember when multiplying or dividing by a negative number we need to flip the inequality symbol. This gives us the following.

\\n

\\\\[\\\\simplify{{a1}x+{a3}}\\\\var{Symb[0]}\\\\simplify{{a2}x+{(a1-a2)*a4+a3}}\\\\]

\\n

\\\\[\\\\simplify[basic]{{a1}x+{a3}-{a3}}\\\\var{Symb[0]}\\\\simplify[basic]{{a2}x+{(a1-a2)*a4+a3}-{a3}}\\\\]

\\n

\\\\[\\\\simplify{{a1}x}\\\\var{Symb[0]}\\\\simplify{{a2}x+{(a1-a2)*a4}}\\\\]

\\n

\\\\[\\\\simplify[basic]{{a1}x-{a2}x}\\\\var{Symb[0]}\\\\simplify{{(a1-a2)*a4}}\\\\]

\\n

\\\\[\\\\simplify{{a1-a2}x}\\\\var{Symb[0]}\\\\simplify{{(a1-a2)*a4}}\\\\]

\\n

\\\\[\\\\simplify[!all]{{a1-a2}x/{a1-a2}}\\\\var{SymbFlipped[0]}\\\\simplify[!all]{{(a1-a2)*a4}/{a1-a2}}\\\\]

\\n

\\\\[x\\\\var{SymbFlipped[0]}\\\\var{a4}.\\\\]

\\n

\\n

Use this link to find some resources which will help you revise this topic.

\"", "description": "", "templateType": "long string", "can_override": false}, "AdviceNotFlipped": {"name": "AdviceNotFlipped", "group": "Ungrouped variables", "definition": "\"

We treat inequalities similarly to solving to an equation. We want to get $x$ on its own on one side, in this case we can achieve this by first subtracting $\\\\var{a3}$ and $\\\\var{a2}x$ from both sides and and then dividing by $\\\\var{a1}-\\\\var{a2}$ which gives us the following.

\\n

\\\\[\\\\simplify{{a1}x+{a3}}\\\\var{Symb[0]}\\\\simplify{{a2}x+{(a1-a2)*a4+a3}}\\\\]

\\n

\\\\[\\\\simplify[basic]{{a1}x+{a3}-{a3}}\\\\var{Symb[0]}\\\\simplify[basic]{{a2}x+{(a1-a2)*a4+a3}-{a3}}\\\\]

\\n

\\\\[\\\\simplify{{a1}x}\\\\var{Symb[0]}\\\\simplify{{a2}x+{(a1-a2)*a4}}\\\\]

\\n

\\\\[\\\\simplify[basic]{{a1}x-{a2}x}\\\\var{Symb[0]}\\\\simplify{{(a1-a2)*a4}}\\\\]

\\n

\\\\[\\\\simplify{{a1-a2}x}\\\\var{Symb[0]}\\\\simplify{{(a1-a2)*a4}}\\\\]

\\n

\\\\[\\\\simplify[!all]{{a1-a2}x/{a1-a2}}\\\\var{Symb[0]}\\\\simplify[!all]{{(a1-a2)*a4}/{a1-a2}}\\\\]

\\n

\\\\[x\\\\var{Symb[0]}\\\\var{a4}.\\\\]

\\n

Use this link to find some resources which will help you revise this topic.

\"", "description": "", "templateType": "long string", "can_override": false}, "Advice": {"name": "Advice", "group": "Ungrouped variables", "definition": "if(Flipped, AdviceIfFlipped, AdviceNotFlipped)", "description": "", "templateType": "anything", "can_override": false}, "Flipped": {"name": "Flipped", "group": "Ungrouped variables", "definition": "a1-a2<0", "description": "", "templateType": "anything", "can_override": false}, "AnsMatrix": {"name": "AnsMatrix", "group": "Ungrouped variables", "definition": "if(Flipped, AnsMatrixFlipped, AnsMatrix1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "abs(a1-a2)<13 and (a1-a2)<>0", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "a3", "a4", "Symb", "Ans", "AnsMatrix1", "AnsMatrixFlipped", "AnsMatrix", "SymbolOptions", "SymbFlipped", "Flipped", "AdviceIfFlipped", "AdviceNotFlipped", "Advice"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

x[[1]][[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a4}", "maxValue": "{a4}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "dropdownlist", "displayColumns": 0, "showBlankOption": true, "showCellAnswerState": true, "choices": ["<", "≤", ">", "≥"], "matrix": "AnsMatrix"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": false, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": false, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "oncompletion"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": true, "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview", "allowrevealanswer": true, "intro": "", "end_message": "", "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [], "reviewshowexpectedanswer": true, "showanswerstate": true, "reviewshowfeedback": true, "showactualmark": true, "showtotalmark": true, "reviewshowscore": true, "reviewshowadvice": true}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4679/"}, {"name": "Andrew Neate", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21832/"}], "extensions": ["chemistry", "jsxgraph", "permutations", "polynomials", "quantities", "random_person", "stats", "visjs"], "custom_part_types": [{"source": {"pk": 28, "author": {"name": "Marie Nicholson", "pk": 1799}, "edit_page": "/part_type/28/edit"}, "name": "True/False", "short_name": "true-false", "description": "

The answer is either 'True' or 'False'

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["True", "False"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"True\"", "help_url": "", "hint": "", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": []}