// Numbas version: finer_feedback_settings {"name": "Modulus graph (1)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"a": {"templateType": "anything", "description": "", "name": "a", "group": "Ungrouped variables", "definition": "random(0.5..3#0.5 except 0)"}, "defs": {"templateType": "anything", "description": "", "name": "defs", "group": "Ungrouped variables", "definition": "[\n ['a',a],\n ['b',b]\n]"}, "b": {"templateType": "anything", "description": "", "name": "b", "group": "Ungrouped variables", "definition": "random(-4..4#0.5 except 0)"}}, "statement": "
Consider the graph below.
\n{geogebra_applet('https://ggbm.at/cQSfYQ2k', defs, [])}
", "parts": [{"matrix": ["2", 0, 0, 0], "marks": 0, "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}}$
"], "maxMarks": 0, "showCorrectAnswer": true, "prompt": "Select the equation for this graph.
", "variableReplacements": [], "distractors": ["", "", "", ""], "minMarks": 0, "displayColumns": 0, "showFeedbackIcon": true, "displayType": "radiogroup", "shuffleChoices": true, "type": "1_n_2", "scripts": {}, "variableReplacementStrategy": "originalfirst"}], "variable_groups": [], "functions": {"graph": {"parameters": [], "type": "html", "language": "jme", "definition": "geogebra_applet('https://ggbm.at/aXxv2ECN', defs, [])"}}, "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!
", "tags": [], "name": "Modulus graph (1)", "rulesets": {}, "variablesTest": {"maxRuns": "200", "condition": ""}, "metadata": {"description": "This uses an embedded Geogebra graph of amodulus function with random coefficients set by NUMBAS.
", "licence": "Creative Commons Attribution 4.0 International"}, "extensions": ["geogebra"], "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["a", "b", "defs"], "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/"}]}