// Numbas version: finer_feedback_settings {"name": "Modulus graph (2)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "defs"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
This uses an embedded Geogebra graph of a modulus function with random coefficients set by NUMBAS.
"}, "advice": "This is not a function. The graph fails the vertical line test, because a vertical line would usually touch two points on the curve.
\nThis is a one-to-many map. That means each input ($x$-axis, domain) often go to two outputs ($y$-axis, range).
\nThis relation does not have an inverse function. Although it passes the horizontal line test....remember, the horizontal line test only applies to functions!
", "preamble": {"css": "", "js": ""}, "extensions": ["geogebra"], "statement": "Consider the graph below.
\n{geogebra_applet('https://ggbm.at/U6RXuHrT', defs, [])}
", "tags": [], "rulesets": {}, "parts": [{"showCorrectAnswer": true, "displayColumns": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "minMarks": 0, "displayType": "radiogroup", "maxMarks": 0, "prompt": "Select the equation for this graph.
", "distractors": ["", "", "", ""], "marks": 0, "type": "1_n_2", "choices": ["$y=|\\simplify[fractionNumbers,unitFactor]{{a}x+{b}}|$
", "$y=\\simplify[fractionNumbers,unitFactor]{{a}x+{b}}$
", "$y=|\\simplify[fractionNumbers,unitFactor]{{-a}x+{b}}|$
", "$y=\\simplify[fractionNumbers,unitFactor]{{a}abs(x)+{b}}$
"], "showFeedbackIcon": true, "shuffleChoices": true, "matrix": ["0", 0, 0, "2"]}], "functions": {"graph": {"language": "jme", "type": "html", "parameters": [], "definition": "geogebra_applet('https://ggbm.at/aXxv2ECN', defs, [])"}}, "name": "Modulus graph (2)", "variable_groups": [], "variables": {"b": {"templateType": "anything", "name": "b", "group": "Ungrouped variables", "description": "", "definition": "random(-4..4#0.5 except 0)"}, "a": {"templateType": "anything", "name": "a", "group": "Ungrouped variables", "description": "", "definition": "random(0.5..3#0.5 except 0)"}, "defs": {"templateType": "anything", "name": "defs", "group": "Ungrouped variables", "description": "", "definition": "[\n ['a',a],\n ['b',b]\n]"}}, "variablesTest": {"condition": "", "maxRuns": "200"}, "type": "question", "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}]}]}], "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}]}