// Numbas version: finer_feedback_settings {"name": "Polynomial Graph 2", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": ["geogebra"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
This uses an embedded Geogebra graph of a cubic polynomial with random coefficients set by NUMBAS. Student has to decide what kind of map it represents and whether an inverse function exists.
"}, "variable_groups": [], "tags": [], "functions": {"graph": {"language": "jme", "parameters": [], "definition": "geogebra_applet('https://ggbm.at/aXxv2ECN', defs, [])", "type": "html"}}, "variables": {"n": {"templateType": "anything", "definition": "random(-1,1)", "description": "", "group": "Ungrouped variables", "name": "n"}, "b": {"templateType": "anything", "definition": "random(-3..3#0.5)", "description": "", "group": "Ungrouped variables", "name": "b"}, "c": {"templateType": "anything", "definition": "random(-3..3#0.5)", "description": "", "group": "Ungrouped variables", "name": "c"}, "defs": {"templateType": "anything", "definition": "[\n ['b',b],\n ['c',c],\n ['n',n]\n]", "description": "", "group": "Ungrouped variables", "name": "defs"}, "D": {"templateType": "anything", "definition": "b^2 - 4*c*n", "description": "", "group": "Ungrouped variables", "name": "D"}}, "ungrouped_variables": ["b", "c", "defs", "D", "n"], "preamble": {"css": "", "js": ""}, "rulesets": {}, "advice": "This is a function. The graph passes the vertical line test, because a vertical line would touch only one point on the curve. That means each input ($x$-axis, domain) goes to one output ($y$-axis, range).
\nThis is a one-to-one map. Each value in the range (the $y$-axis) is associated with only one value in the domain.
\nThis function has an inverse function. The graph passes the horizontal line test, because a horizontal line would make contact with only one point on the curve.
", "variablesTest": {"condition": "D<0", "maxRuns": "200"}, "statement": "Select the true statements about the following graph.
\n{geogebra_applet('https://ggbm.at/ECnvrES2', defs, [])}
", "parts": [{"variableReplacements": [], "showCorrectAnswer": true, "minAnswers": "2", "choices": ["One-to-one map
", "Many-to-one map
", "One-to-many map
", "This graph is a function.
", "This graph is not a function.
", "Inverse function exists.
", "Inverse function does not exist.
"], "shuffleChoices": true, "variableReplacementStrategy": "originalfirst", "prompt": "