// Numbas version: finer_feedback_settings {"name": "Ulikheter: Doble ulikheter (OG), tester verdier", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Ulikheter: Doble ulikheter (OG), tester verdier", "tags": ["inequalities", "inequality", "inequations"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"num4": {"name": "num4", "group": "partb", "definition": "num3+random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "num1": {"name": "num1", "group": "Ungrouped variables", "definition": "random(-12..12)", "description": "", "templateType": "anything", "can_override": false}, "num2": {"name": "num2", "group": "Ungrouped variables", "definition": "num1+random(2..12)", "description": "", "templateType": "anything", "can_override": false}, "num3": {"name": "num3", "group": "partb", "definition": "random(-12..12 except num1)", "description": "", "templateType": "anything", "can_override": false}, "ineqs": {"name": "ineqs", "group": "partb", "definition": "random(\n [random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$'),random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$'),'l'],\n [random('\\$\\\\,>\\\\,\\$','\\$\\\\,\\\\ge\\\\,\\$'),random('\\$\\\\,>\\\\,\\$','\\$\\\\,\\\\ge\\\\,\\$'),'g'])", "description": "", "templateType": "anything", "can_override": false}, "words2": {"name": "words2", "group": "Ungrouped variables", "definition": "if(ineq2='\\$\\\\,<\\\\,\\$',['er \\$\\\\textbf{mindre enn}\\$','\\$\\\\textbf{til}\\$','\\$\\\\textbf{ikke}\\$ er inkludert'],\n if(ineq2='\\$\\\\,\\\\le\\\\,\\$',['er \\$\\\\textbf{mindre eller lik}\\$','\\$\\\\textbf{til og med}\\$','er inkludert'],\n if(ineq2='\\$\\\\,>\\\\,\\$',['er \\$\\\\textbf{st\u00f8rre enn}\\$','\\$\\\\textbf{fra}\\$','\\$\\\\textbf{ikke}\\$ er inkludert'],\n if(ineq2='\\$\\\\,\\\\ge\\\\,\\$',['\\$\\\\textbf{st\u00f8rre eller lik}\\$','\\$\\\\textbf{fra og med}\\$','er inkludert'],[\"error\",\"error\"]))))", "description": "", "templateType": "anything", "can_override": false}, "words1": {"name": "words1", "group": "Ungrouped variables", "definition": "if(ineq1='\\$\\\\,<\\\\,\\$',['er \\$\\\\textbf{mindre enn}\\$','\\$\\\\textbf{fra}\\$','\\$\\\\textbf{ikke}\\$ er inkludert'],\n if(ineq1='\\$\\\\,\\\\le\\\\,\\$',['er \\$\\\\textbf{mindre eller lik}\\$','\\$\\\\textbf{fra og med}\\$','er inkludert'],\n if(ineq1='\\$\\\\,>\\\\,\\$',['er \\$\\\\textbf{st\u00f8rre enn}\\$','\\$\\\\textbf{til}\\$','\\$\\\\textbf{ikke}\\$ er inkludert'],\n if(ineq1='\\$\\\\,\\\\ge\\\\,\\$',['\\$\\\\textbf{st\u00f8rre eller lik}\\$','\\$\\\\textbf{til og med}\\$','er inkludert'],[\"error\",\"error\"]))))", "description": "", "templateType": "anything", "can_override": false}, "middle": {"name": "middle", "group": "Ungrouped variables", "definition": "(num1+num2)/2+random(-0.1..0.1#0.01)", "description": "", "templateType": "anything", "can_override": false}, "marking2": {"name": "marking2", "group": "partb", "definition": "if(ineqs[2]='l',[1,0],if(ineqs[2]='g',[0,1],\"error\"))", "description": "", "templateType": "anything", "can_override": false}, "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", "can_override": false}, "num2tex": {"name": "num2tex", "group": "Ungrouped variables", "definition": "'\\$\\\\var{num2}\\$'", "description": "", "templateType": "anything", "can_override": false}, "less": {"name": "less", "group": "Ungrouped variables", "definition": "num1-random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "question": {"name": "question", "group": "Ungrouped variables", "definition": "num1tex+ineq1+variable+ineq2+num2tex", "description": "", "templateType": "anything", "can_override": false}, "more": {"name": "more", "group": "Ungrouped variables", "definition": "num2+random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "ineq1": {"name": "ineq1", "group": "Ungrouped variables", "definition": "random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$')", "description": "", "templateType": "anything", "can_override": false}, "ineq2": {"name": "ineq2", "group": "Ungrouped variables", "definition": "random('\\$\\\\,<\\\\,\\$','\\$\\\\,\\\\le\\\\,\\$')", "description": "", "templateType": "anything", "can_override": false}, "variable2": {"name": "variable2", "group": "partb", "definition": "random(['\\$x\\$','\\$y\\$','\\$z\\$','\\$n\\$','\\$m\\$','\\$a\\$','\\$b\\$'] except variable)", "description": "", "templateType": "anything", "can_override": false}, "question2": {"name": "question2", "group": "partb", "definition": "variable2+ineqs[0]+num3+' \\$\\\\textbf{og}\\$ '+variable2+ineqs[1]+num4", "description": "", "templateType": "anything", "can_override": false}, "variable": {"name": "variable", "group": "Ungrouped variables", "definition": "random('\\$x\\$','\\$y\\$','\\$z\\$','\\$n\\$','\\$m\\$','\\$a\\$','\\$b\\$')", "description": "", "templateType": "anything", "can_override": false}, "solution": {"name": "solution", "group": "partb", "definition": "if(ineqs[2]='l',variable2+ineqs[0]+num3+' fordi '+num3+'\\$\\\\,<\\\\,\\$'+num4,if(ineqs[2]='g',variable2+ineqs[1]+num4+' fordi '+num4+'\\$\\\\,>\\\\,\\$'+num3,\"error\"))", "description": "", "templateType": "anything", "can_override": false}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "[less, num1, middle, num2, more]", "description": "", "templateType": "anything", "can_override": false}, "num1tex": {"name": "num1tex", "group": "Ungrouped variables", "definition": "'\\$\\\\var{num1}\\$'", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "\n", "maxRuns": 100}, "ungrouped_variables": ["variable", "ineq1", "ineq2", "num1", "num2", "num1tex", "num2tex", "question", "less", "more", "middle", "choices", "marking", "words1", "words2"], "variable_groups": [{"name": "partb", "variables": ["variable2", "ineqs", "num3", "num4", "question2", "marking2", "solution"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_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, "prompt": "Hvilke av følgende verdier for {variable} tilfredsstiller ulikheten {question}?
", "stepsPenalty": "1", "steps": [{"type": "information", "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": "Uttrykket {question} betyr at {num1tex} {words1[0]} {variable} og {variable} {words2[0]} {num2tex}. En annen måte å si dette på er at {variable} er {words1[1]} {num1tex} {words2[1]} {num2tex}, dvs at {num1tex} {words1[2]} og {num2tex} {words2[2]} i løsningen.
"}], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["
{less}
{num1}
{middle}
{num2}
{more}
Hvilken av følgende ulikheter er ekvivalent (ensbetydende) med betingelsen {question2}?
", "stepsPenalty": "1", "steps": [{"type": "information", "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": "'{question2}' krever at begge ulikhetene er tilfredsstilt. Begge er tilfredsstilt når {solution}.
"}], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{variable2+ineqs[0]+num3}
", "{variable2+ineqs[1]+num4}
"], "matrix": "marking2"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Torris Bakke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/942/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Torris Bakke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/942/"}]}