// Numbas version: exam_results_page_options {"name": "Maria's copy of Even Functions", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "functions": {"graph": {"type": "html", "language": "javascript", "parameters": [["a", "number"]], "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',\n{boundingbox: [-2.5, a*6, 2.5, -1],\n axis: true,\n showNavigation: false,\n grid: true\n});\n\nvar board = div.board;\n\nfunction f(x) {\n return a*x*x;\n}\n\nvar curve = board.createElement('functiongraph', f, {visible:true});\n\nvar Y = board.createElement('point', [0,1],{visible:false});\nvar O = board.createElement('point', [0,0],{visible:false, fixed: true, name:\"O\"});\n//var yaxis = board.createElement('line', [Y,O]);\n\nvar A = board.createElement('glider', [-1,a, curve], {name:\"A\"});\nvar B = board.createElement('point', [function () { return -1*A.X();}, function () {return A.Y();}], {name:\"B\",color:\"blue\"});\nvar C = board.createElement('point', [0, function () {return A.Y();}], {name:\"C\",color:\"blue\",visible:false});\n\nboard.createElement('segment', [A,C],{strokeWidth:4});\nboard.createElement('segment', [C,B],{strokeWidth:4,dash:1});\n\nreturn div;"}}, "name": "Maria's copy of Even Functions", "variables": {"x1": {"definition": "random(-3..0 except 0)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "x1"}, "a": {"definition": "random(1..4)", "description": "", "group": "Ungrouped variables", "templateType": "anything", "name": "a"}}, "parts": [{"notationStyles": ["plain", "en", "si-en"], "scripts": {}, "prompt": "
If the \\(x\\) coordinate of the point \\(A\\) is \\(\\var{x1}\\) then what is the \\(x\\)-coordinate of the point \\(B\\)?
", "maxValue": "-1*{x1}", "unitTests": [], "mustBeReduced": false, "mustBeReducedPC": 0, "showCorrectAnswer": true, "type": "numberentry", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "customName": "", "showFeedbackIcon": true, "allowFractions": false, "showFractionHint": true, "correctAnswerStyle": "plain", "adaptiveMarkingPenalty": 0, "correctAnswerFraction": false, "useCustomName": false, "minValue": "-1*{x1}", "marks": 1}, {"notationStyles": ["plain", "en", "si-en"], "scripts": {}, "prompt": "If the \\(y\\) coordinate of the point \\(A\\) is \\(\\var{a*x1^2}\\) then what is the \\(y\\)-coordinate of the point \\(B\\)?
", "maxValue": "{a*x1^2}", "unitTests": [], "mustBeReduced": false, "mustBeReducedPC": 0, "showCorrectAnswer": true, "type": "numberentry", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "customName": "", "showFeedbackIcon": true, "allowFractions": false, "showFractionHint": true, "correctAnswerStyle": "plain", "adaptiveMarkingPenalty": 0, "correctAnswerFraction": false, "useCustomName": false, "minValue": "{a*x1^2}", "marks": 1}], "metadata": {"licence": "Creative Commons Attribution-ShareAlike 4.0 International", "description": "A graphical introduction to the concept of even functions a symmery
"}, "statement": "Geometrically, a function is called even if it is symmetric in the
Here the line from \\(A\\) to the vertical axis is shown as a solid line, and the reflection from the axis to \\(B\\) is shown as a dashed line.
\n{graph(a)}
\n\\(f(-x) \\equiv f(x).\\)
", "tags": [], "extensions": ["jsxgraph"], "variable_groups": [], "preamble": {"css": "", "js": ""}, "advice": "Suppose that the point \\(A\\) has coordinates \\((\\var{x1}, \\var{a*x1^2})\\). Then by the symmetry of the graph the point \\(B\\) has coordinates \\((\\var{-1*x1}, \\var{a*x1^2})\\).
", "ungrouped_variables": ["a", "x1"], "variablesTest": {"condition": "", "maxRuns": 100}, "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Laure Helme-Guizon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2531/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Laure Helme-Guizon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2531/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}