// Numbas version: finer_feedback_settings {"name": "Inequalities: double inequality (OR), testing values", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"words2": {"templateType": "anything", "name": "words2", "description": "", "definition": "if(ineq2='\\$\\\\,<\\\\,\\$',['is less than','excluding'],\n if(ineq2='\\$\\\\,\\\\le\\\\,\\$',['is less than or equal to','including'],\n if(ineq2='\\$\\\\,>\\\\,\\$',['is greater than','excluding'],\n if(ineq2='\\$\\\\,\\\\ge\\\\,\\$',['is greater than or equal to','including'],[\"error\",\"error\"]))))", "group": "Ungrouped variables"}, "more": {"templateType": "anything", "name": "more", "description": "", "definition": "num2+random(2..5)", "group": "Ungrouped variables"}, "choices": {"templateType": "anything", "name": "choices", "description": "", "definition": "[less, num1, middle, num2, more]", "group": "Ungrouped variables"}, "num1": {"templateType": "anything", "name": "num1", "description": "", "definition": "random(-12..12)", "group": "Ungrouped variables"}, "num1tex": {"templateType": "anything", "name": "num1tex", "description": "", "definition": "'\\$\\\\var{num1}\\$'", "group": "Ungrouped variables"}, "less": {"templateType": "anything", "name": "less", "description": "", "definition": "num1-random(1..5)", "group": "Ungrouped variables"}, "solution": {"templateType": "anything", "name": "solution", "description": "", "definition": "if(ineqs[2]='l',variable2+ineqs[0]+num4+' since '+num3+'\\$\\\\,<\\\\,\\$'+num4,if(ineqs[2]='g',variable2+ineqs[1]+num3+' since '+num4+'\\$\\\\,>\\\\,\\$'+num3,\"error\"))", "group": "partb"}, "ineqs": {"templateType": "anything", "name": "ineqs", "description": "", "definition": "random(\n [random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$'),random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$'),'l'],\n [random('\\$\\\\,>\\\\,\\$','\\$\\\\,\\\\ge\\\\,\\$'),random('\\$\\\\,>\\\\,\\$','\\$\\\\,\\\\ge\\\\,\\$'),'g'])", "group": "partb"}, "variable2": {"templateType": "anything", "name": "variable2", "description": "", "definition": "random(['\\$x\\$','\\$y\\$','\\$z\\$','\\$n\\$','\\$m\\$','\\$a\\$','\\$b\\$'] except variable)", "group": "partb"}, "num2tex": {"templateType": "anything", "name": "num2tex", "description": "", "definition": "'\\$\\\\var{num2}\\$'", "group": "Ungrouped variables"}, "marking": {"templateType": "anything", "name": "marking", "description": "

[less, num1, middle, num2, more]

", "definition": "if(ineq1='\\$\\\\,<\\\\,\\$' and ineq2='\\$\\\\,>\\\\,\\$',[1,0,0,0,1],\nif(ineq1='\\$\\\\,<\\\\,\\$' and ineq2='\\$\\\\,\\\\ge\\\\,\\$',[1,0,0,1,1],\nif(ineq1='\\$\\\\,\\\\le\\\\,\\$' and ineq2='\\$\\\\,\\\\ge\\\\,\\$',[1,1,0,1,1],\nif(ineq1='\\$\\\\,\\\\le\\\\,\\$' and ineq2='\\$\\\\,>\\\\,\\$',[1,1,0,0,1],\"error\"))))", "group": "Ungrouped variables"}, "words1": {"templateType": "anything", "name": "words1", "description": "", "definition": "if(ineq1='\\$\\\\,<\\\\,\\$',['is less than','excluding'],\n if(ineq1='\\$\\\\,\\\\le\\\\,\\$',['is less than or equal to','including'],\n if(ineq1='\\$\\\\,>\\\\,\\$',['is greater than','excluding'],\n if(ineq1='\\$\\\\,\\\\ge\\\\,\\$',['is greater than or equal to','including'],[\"error\",\"error\"]))))", "group": "Ungrouped variables"}, "num3": {"templateType": "anything", "name": "num3", "description": "", "definition": "random(-12..12 except num1)", "group": "partb"}, "question": {"templateType": "anything", "name": "question", "description": "", "definition": "variable+ineq1+num1tex+' or '+variable+ineq2+num2tex", "group": "Ungrouped variables"}, "ineq2": {"templateType": "anything", "name": "ineq2", "description": "", "definition": "random('\\$\\\\,>\\\\,\\$','\\$\\\\,\\\\ge\\\\,\\$')", "group": "Ungrouped variables"}, "ineq1": {"templateType": "anything", "name": "ineq1", "description": "", "definition": "random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$')", "group": "Ungrouped variables"}, "question2": {"templateType": "anything", "name": "question2", "description": "", "definition": "variable2+ineqs[0]+num3+' or '+variable2+ineqs[1]+num4", "group": "partb"}, "num2": {"templateType": "anything", "name": "num2", "description": "", "definition": "num1+random(2..12)", "group": "Ungrouped variables"}, "middle": {"templateType": "anything", "name": "middle", "description": "", "definition": "(num1+num2)/2+random(-0.1..0.1#0.01)", "group": "Ungrouped variables"}, "variable": {"templateType": "anything", "name": "variable", "description": "", "definition": "random('\\$x\\$','\\$y\\$','\\$z\\$','\\$n\\$','\\$m\\$','\\$a\\$','\\$b\\$')", "group": "Ungrouped variables"}, "marking2": {"templateType": "anything", "name": "marking2", "description": "", "definition": "if(ineqs[2]='l',[0,1],if(ineqs[2]='g',[1,0],\"error\"))", "group": "partb"}, "num4": {"templateType": "anything", "name": "num4", "description": "", "definition": "num3+random(2..12)", "group": "partb"}}, "statement": "", "name": "Inequalities: double inequality (OR), testing values", "parts": [{"minMarks": 0, "marks": 0, "steps": [{"marks": 0, "showCorrectAnswer": true, "scripts": {}, "type": "information", "prompt": "

The statement {question} means '{variable} {words1[0]} {num1tex} or {variable} {words2[0]} {num2tex}'.

", "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "matrix": "marking", "maxAnswers": 0, "maxMarks": 0, "displayType": "checkbox", "variableReplacementStrategy": "originalfirst", "choices": ["

{less}

", "

{num1}

", "

{middle}

", "

{num2}

", "

{more}

"], "minAnswers": 0, "showCorrectAnswer": true, "scripts": {}, "type": "m_n_2", "prompt": "

Which of the following values for {variable} satisfy the inequalities {question}?

", "displayColumns": 0, "warningType": "none", "stepsPenalty": 0, "shuffleChoices": true, "variableReplacements": []}, {"marks": 0, "steps": [{"marks": 0, "showCorrectAnswer": true, "scripts": {}, "type": "information", "prompt": "

'{question2}' only requires that one of the inequalities are satisfied (but both can be satisified as well). This condition will be satisfied when {solution}.

", "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "minMarks": 0, "shuffleChoices": true, "matrix": "marking2", "maxMarks": 0, "variableReplacementStrategy": "originalfirst", "choices": ["

{variable2+ineqs[0]+num3}

", "

{variable2+ineqs[1]+num4}

"], "displayType": "radiogroup", "showCorrectAnswer": true, "scripts": {}, "type": "1_n_2", "prompt": "

The condition that {question2}, is equivalent to which of the following?  

", "displayColumns": 0, "stepsPenalty": 0, "variableReplacements": []}], "functions": {}, "rulesets": {}, "variable_groups": [{"variables": ["variable2", "ineqs", "num3", "num4", "question2", "marking2", "solution"], "name": "partb"}], "preamble": {"css": "", "js": ""}, "tags": ["inequalities", "inequality", "inequations"], "question_groups": [{"name": "", "pickQuestions": 0, "questions": [], "pickingStrategy": "all-ordered"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["variable", "ineq1", "ineq2", "num1", "num2", "num1tex", "num2tex", "question", "less", "more", "middle", "choices", "marking", "words1", "words2"], "advice": "", "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "", "notes": ""}, "showQuestionGroupNames": false, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}