// Numbas version: finer_feedback_settings {"name": "Inequalities: double inequality (AND), testing values", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"words1": {"name": "words1", "group": "Ungrouped variables", "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\"]))))", "description": "", "templateType": "anything"}, "num1tex": {"name": "num1tex", "group": "Ungrouped variables", "definition": "'\\$\\\\var{num1}\\$'", "description": "", "templateType": "anything"}, "ineq1": {"name": "ineq1", "group": "Ungrouped variables", "definition": "random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$')", "description": "", "templateType": "anything"}, "words2": {"name": "words2", "group": "Ungrouped variables", "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\"]))))", "description": "", "templateType": "anything"}, "marking": {"name": "marking", "group": "Ungrouped variables", "definition": "if(ineq1='\\$\\\\,<\\\\,\\$' and ineq2='\\$\\\\,<\\\\,\\$',[0,0,1,0,0],\nif(ineq1='\\$\\\\,<\\\\,\\$' and ineq2='\\$\\\\,\\\\le\\\\,\\$',[0,0,1,1,0],\nif(ineq1='\\$\\\\,\\\\le\\\\,\\$' and ineq2='\\$\\\\,\\\\le\\\\,\\$',[0,1,1,1,0],\nif(ineq1='\\$\\\\,\\\\le\\\\,\\$' and ineq2='\\$\\\\,<\\\\,\\$',[0,1,1,0,0],\"error\"))))", "description": "
[less, num1, middle, num2, more]
", "templateType": "anything"}, "marking2": {"name": "marking2", "group": "partb", "definition": "if(ineqs[2]='l',[1,0],if(ineqs[2]='g',[0,1],\"error\"))", "description": "", "templateType": "anything"}, "num1": {"name": "num1", "group": "Ungrouped variables", "definition": "random(-12..12)", "description": "", "templateType": "anything"}, "more": {"name": "more", "group": "Ungrouped variables", "definition": "num2+random(2..5)", "description": "", "templateType": "anything"}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "[less, num1, middle, num2, more]", "description": "", "templateType": "anything"}, "ineqs": {"name": "ineqs", "group": "partb", "definition": "random(\n [random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$'),random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$'),'l'],\n [random('\\$\\\\,>\\\\,\\$','\\$\\\\,\\\\ge\\\\,\\$'),random('\\$\\\\,>\\\\,\\$','\\$\\\\,\\\\ge\\\\,\\$'),'g'])", "description": "", "templateType": "anything"}, "variable2": {"name": "variable2", "group": "partb", "definition": "random(['\\$x\\$','\\$y\\$','\\$z\\$','\\$n\\$','\\$m\\$','\\$a\\$','\\$b\\$'] except variable)", "description": "", "templateType": "anything"}, "less": {"name": "less", "group": "Ungrouped variables", "definition": "num1-random(1..5)", "description": "", "templateType": "anything"}, "question2": {"name": "question2", "group": "partb", "definition": "variable2+ineqs[0]+num3+' and '+variable2+ineqs[1]+num4", "description": "", "templateType": "anything"}, "solution": {"name": "solution", "group": "partb", "definition": "if(ineqs[2]='l',variable2+ineqs[0]+num3+' since '+num3+'\\$\\\\,<\\\\,\\$'+num4,if(ineqs[2]='g',variable2+ineqs[1]+num4+' since '+num4+'\\$\\\\,>\\\\,\\$'+num3,\"error\"))", "description": "", "templateType": "anything"}, "middle": {"name": "middle", "group": "Ungrouped variables", "definition": "(num1+num2)/2+random(-0.1..0.1#0.01)", "description": "", "templateType": "anything"}, "variable": {"name": "variable", "group": "Ungrouped variables", "definition": "random('\\$x\\$','\\$y\\$','\\$z\\$','\\$n\\$','\\$m\\$','\\$a\\$','\\$b\\$')", "description": "", "templateType": "anything"}, "ineq2": {"name": "ineq2", "group": "Ungrouped variables", "definition": "random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$')", "description": "", "templateType": "anything"}, "num4": {"name": "num4", "group": "partb", "definition": "num3+random(2..12)", "description": "", "templateType": "anything"}, "question": {"name": "question", "group": "Ungrouped variables", "definition": "num1tex+ineq1+variable+ineq2+num2tex", "description": "", "templateType": "anything"}, "num2tex": {"name": "num2tex", "group": "Ungrouped variables", "definition": "'\\$\\\\var{num2}\\$'", "description": "", "templateType": "anything"}, "num2": {"name": "num2", "group": "Ungrouped variables", "definition": "num1+random(2..12)", "description": "", "templateType": "anything"}, "num3": {"name": "num3", "group": "partb", "definition": "random(-12..12 except num1)", "description": "", "templateType": "anything"}}, "rulesets": {}, "showQuestionGroupNames": false, "ungrouped_variables": ["variable", "ineq1", "ineq2", "num1", "num2", "num1tex", "num2tex", "question", "less", "more", "middle", "choices", "marking", "words1", "words2"], "variablesTest": {"condition": "\n", "maxRuns": 100}, "name": "Inequalities: double inequality (AND), testing values", "parts": [{"displayColumns": 0, "maxAnswers": 0, "warningType": "none", "choices": ["{less}
", "{num1}
", "{middle}
", "{num2}
", "{more}
"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "stepsPenalty": "1", "showCorrectAnswer": true, "displayType": "checkbox", "prompt": "Which of the following values for {variable} satisfy the inequality {question}?
", "maxMarks": 0, "shuffleChoices": true, "steps": [{"prompt": "The statement {question} means '{num1tex} {words1[0]} {variable} and {variable} {words2[0]} {num2tex}'. Another way to say this is '{variable} is between {num1tex} and {num2tex}, {words1[1]} {num1tex} and {words2[1]} {num2tex}'.
", "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "type": "information", "showCorrectAnswer": true}], "minMarks": 0, "matrix": "marking", "minAnswers": 0, "marks": 0, "type": "m_n_2"}, {"choices": ["{variable2+ineqs[0]+num3}
", "{variable2+ineqs[1]+num4}
"], "marks": 0, "scripts": {}, "displayColumns": 0, "variableReplacements": [], "stepsPenalty": "1", "showCorrectAnswer": true, "displayType": "radiogroup", "maxMarks": 0, "prompt": "The condition that {question2}, is equivalent to which of the following?
", "matrix": "marking2", "shuffleChoices": true, "steps": [{"prompt": "'{question2}' requires that both inequalities are satisfied. Both will be satisfied when {solution}.
", "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "type": "information", "showCorrectAnswer": true}], "minMarks": 0, "variableReplacementStrategy": "originalfirst", "type": "1_n_2"}], "question_groups": [{"name": "", "pickQuestions": 0, "pickingStrategy": "all-ordered", "questions": []}], "variable_groups": [{"variables": ["variable2", "ineqs", "num3", "num4", "question2", "marking2", "solution"], "name": "partb"}], "advice": "", "metadata": {"description": "", "notes": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "preamble": {"css": "", "js": ""}, "tags": ["inequalities", "inequality", "inequations"], "functions": {}, "statement": "", "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/"}]}