// Numbas version: exam_results_page_options {"name": "PreCal Transformation of Functions Vertical Shift", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "metadata": {"licence": "All rights reserved", "description": ""}, "ungrouped_variables": ["hshift", "vshift", "hdirection", "vdirection", "hsign", "vsign", "hword", "vword", "hvalue", "vvalue"], "rulesets": {}, "name": "PreCal Transformation of Functions Vertical Shift", "advice": "", "parts": [{"checkingType": "absdiff", "showFeedbackIcon": true, "adaptiveMarkingPenalty": 0, "vsetRange": [0, 1], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "checkingAccuracy": 0.001, "failureRate": 1, "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "vsetRangePoints": 5, "useCustomName": false, "answer": "x^2+{vshift}", "prompt": "

The transformed function is:

\n

$g(x) =$

", "marks": 1}], "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "extensions": [], "statement": "

GIVEN:  $f(x)=x^2$

\n

FIND:  Write the function $g(x)$ that has a vertical shift of $f(x)$ $\\var{vvalue}$ units $\\var{vword}$.

", "variables": {"vdirection": {"name": "vdirection", "group": "Ungrouped variables", "definition": "[\"down\",\"up\"]", "description": "", "templateType": "anything"}, "hword": {"name": "hword", "group": "Ungrouped variables", "definition": "hdirection[(hsign+1)/2]", "description": "", "templateType": "anything"}, "hvalue": {"name": "hvalue", "group": "Ungrouped variables", "definition": "abs(hshift)", "description": "", "templateType": "anything"}, "vword": {"name": "vword", "group": "Ungrouped variables", "definition": "vdirection[(vsign+1)/2]", "description": "", "templateType": "anything"}, "vvalue": {"name": "vvalue", "group": "Ungrouped variables", "definition": "abs(vshift)", "description": "", "templateType": "anything"}, "hdirection": {"name": "hdirection", "group": "Ungrouped variables", "definition": "[\"right\",\"left\"]", "description": "", "templateType": "anything"}, "hsign": {"name": "hsign", "group": "Ungrouped variables", "definition": "sign(hshift)", "description": "", "templateType": "anything"}, "hshift": {"name": "hshift", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything"}, "vsign": {"name": "vsign", "group": "Ungrouped variables", "definition": "sign(vshift)", "description": "", "templateType": "anything"}, "vshift": {"name": "vshift", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything"}}, "preamble": {"css": "", "js": ""}, "functions": {}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}