// Numbas version: exam_results_page_options {"name": "2.2.1.2 Graphing functions and finding domain and range", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "2.2.1.2 Graphing functions and finding domain and range", "tags": [], "metadata": {"description": "

Graph a linear or quadratic function and state its domain and range. Part of HELM Book 2.2.1.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Plot a graph of $\\var{function},\\quad \\var{DomainMin} \\leq x \\leq \\var{DomainMax}$.

\n

State the domain and range of the function.

", "advice": "

 $\\var{function}, \\qquad \\var{domainMin} \\leq x \\leq  \\var{domainMax}$

\n

{diagram}

\n

Domain = $[\\var{domainMin},\\var{domainMax}]$

\n

Range = $[\\var{rangeMin},\\var{rangeMax}]$

\n

", "rulesets": {}, "extensions": ["jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"domainMin": {"name": "domainMin", "group": "Ungrouped variables", "definition": "random(-5..3)", "description": "", "templateType": "anything", "can_override": false}, "domainMax": {"name": "domainMax", "group": "Ungrouped variables", "definition": "random(domainMin+1..5)", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything", "can_override": false}, "function": {"name": "function", "group": "Ungrouped variables", "definition": "simplify(expression([string(v2)+\"*\"+ letter + \"+\"+ string(v1),\n letter + \"^2+\"+string(v1),\n string(v2)+\"*\"+letter+\"^2+\"+string(v1),\n string(v1)+\"-\"+letter+\"^2\"\n ][idx]),\"all\")", "description": "", "templateType": "anything", "can_override": false}, "letter": {"name": "letter", "group": "Ungrouped variables", "definition": "random(\"a\",\"b\",\"c\",\"p\",\"t\",\"x\")", "description": "", "templateType": "anything", "can_override": false}, "range_LH": {"name": "range_LH", "group": "Ungrouped variables", "definition": "eval(function,\u00a0[\"a\":domainMin,\"b\":domainMin,\"c\":domainMin,\"p\":domainMin,\"t\":domainMin,\"x\":domainMin])", "description": "", "templateType": "anything", "can_override": false}, "range_RH": {"name": "range_RH", "group": "Ungrouped variables", "definition": "eval(function,\u00a0[\"a\":domainMax,\"b\":domainMax,\"c\":domainMax,\"p\":domainMax,\"t\":domainMax,\"x\":domainMax])", "description": "", "templateType": "anything", "can_override": false}, "rangeMin": {"name": "rangeMin", "group": "Ungrouped variables", "definition": "min([range_LH,range_RH,valat0])", "description": "", "templateType": "anything", "can_override": false}, "rangeMax": {"name": "rangeMax", "group": "Ungrouped variables", "definition": "max([range_LH,range_RH,valat0])", "description": "", "templateType": "anything", "can_override": false}, "diagram": {"name": "diagram", "group": "Ungrouped variables", "definition": "jsxgraph(\n 500,500,\n [graphxmin, graphymax, graphxmax,graphymin],\n [\n \"f\":['functiongraph',[function]]\n ]\n) ", "description": "", "templateType": "anything", "can_override": false}, "v1": {"name": "v1", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "v2": {"name": "v2", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "graphxMin": {"name": "graphxMin", "group": "Ungrouped variables", "definition": "min(0,domainMin)-1", "description": "", "templateType": "anything", "can_override": false}, "graphyMin": {"name": "graphyMin", "group": "Ungrouped variables", "definition": "min(0,rangeMin)-1", "description": "", "templateType": "anything", "can_override": false}, "graphxmax": {"name": "graphxmax", "group": "Ungrouped variables", "definition": "max(0,domainMax)+1", "description": "", "templateType": "anything", "can_override": false}, "graphymax": {"name": "graphymax", "group": "Ungrouped variables", "definition": "max(0,rangeMax)+1", "description": "", "templateType": "anything", "can_override": false}, "ValAt0": {"name": "ValAt0", "group": "Ungrouped variables", "definition": "if(0>domainMin and 0If 0 is in the domain, then this (turning point) is a candidate for the min/max value. If 0 is outside the domain, just set this variable to the range_LH value, so it is ignored.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v1", "v2", "domainMin", "domainMax", "idx", "letter", "function", "range_LH", "range_RH", "ValAt0", "rangeMin", "rangeMax", "graphxMin", "graphyMin", "graphxmax", "graphymax", "diagram"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

Domain = [ [[0]] , [[1]] ] and Range = [ [[3]], [[2]] ]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Domain Min", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "DomainMin", "maxValue": "DomainMin", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Domain Max", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "DomainMax", "maxValue": "DomainMax", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Range Max", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "RangeMax", "maxValue": "RangeMax", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Range Min", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "RangeMin", "maxValue": "RangeMin", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}