// Numbas version: exam_results_page_options {"name": "Exponential graphs", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Exponential graphs", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": ["jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"functions": {"name": "functions", "group": "Ungrouped variables", "definition": "random(latex(\"y=e^\\{-x\\}\"),latex(\"y=-e^x\"),latex(\"y=-e^\\{-x\\}\"))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["functions"], "variable_groups": [], "functions": {"graph1": {"parameters": [], "type": "anything", "language": "jme", "definition": "jessiecode(300,200,[-4,2,4,-2],safe(\"\"\"\nyaxis = axis( [0,0],[0,1] ) <<\n ticks: <<\n ticksdistance: 1,\n insertticks: false\n >>,\n withLabel: true,\n name: 'y',\n label: <>\n>>;\nxaxis = axis( [0,0],[1,0] ) <<\n ticks: <<\n ticksdistance: 1,\n insertticks: false\n >>,\n withLabel: true,\n name: 'x',\n label: <>\n>>;\nfunctiongraph('exp(x)', -4, 4) <>;\n\n \"\"\"),\n[\n \"axis\": false\n])"}, "graph2": {"parameters": [], "type": "anything", "language": "jme", "definition": "jessiecode(300,200,[-4,2,4,-2],\"\"\"\nyaxis = axis( [0,0],[0,1] ) <<\n ticks: <<\n ticksdistance: 1,\n insertticks: false\n >>,\n withLabel: true,\n name: 'y',\n label: <>\n>>;\nxaxis = axis( [0,0],[1,0] ) <<\n ticks: <<\n ticksdistance: 1,\n insertticks: false\n >>,\n withLabel: true,\n name: 'x',\n label: <>\n>>;\nfunctiongraph('exp(-x)', -4, 4) <>;\n\n \"\"\",\n[\n \"axis\": false\n])"}, "graph3": {"parameters": [], "type": "anything", "language": "jme", "definition": "jessiecode(300,200,[-4,2,4,-2],\"\"\"\nyaxis = axis( [0,0],[0,1] ) <<\n ticks: <<\n ticksdistance: 1,\n insertticks: false\n >>,\n withLabel: true,\n name: 'y',\n label: <>\n>>;\nxaxis = axis( [0,0],[1,0] ) <<\n ticks: <<\n ticksdistance: 1,\n insertticks: false\n >>,\n withLabel: true,\n name: 'x',\n label: <>\n>>;\nfunctiongraph('-exp(x)', -4, 4) <>;\n\n \"\"\",\n[\n \"axis\": false\n])"}, "graph4": {"parameters": [], "type": "anything", "language": "jme", "definition": "jessiecode(300,200,[-4,2,4,-2],\"\"\"\nyaxis = axis( [0,0],[0,1] ) <<\n ticks: <<\n ticksdistance: 1,\n insertticks: false\n >>,\n withLabel: true,\n name: 'y',\n label: <>\n>>;\nxaxis = axis( [0,0],[1,0] ) <<\n ticks: <<\n ticksdistance: 1,\n insertticks: false\n >>,\n withLabel: true,\n name: 'x',\n label: <>\n>>;\nfunctiongraph('-exp(-x)', -4, 4) <>;\n\n \"\"\",\n[\n \"axis\": false\n])"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_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": "

Which of the following is the graph of \\(\\var{functions} ?\\)

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "2", "showCellAnswerState": true, "choices": ["{graph1()}", "{graph2()}", "{graph3()}", "{graph4()}"], "matrix": ["if(functions=latex(\"y=e^x\"),1,0)", "if(functions=latex(\"y=e^\\{-x\\}\"),1,0)", "if(functions=latex(\"y=-e^x\"),1,0)", "if(functions=latex(\"y=-e^\\{-x\\}\"),1,0)"], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Jim Pettigrew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2037/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Jim Pettigrew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2037/"}]}