// 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": [{"rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "tags": [], "ungrouped_variables": ["hshift", "vshift", "hdirection", "vdirection", "hsign", "vsign", "hword", "vword", "hvalue", "vvalue", "absx"], "functions": {}, "name": "PreCal Transformation of Functions Vertical Shift", "advice": "", "metadata": {"licence": "All rights reserved", "description": ""}, "extensions": [], "variables": {"vword": {"group": "Ungrouped variables", "templateType": "anything", "definition": "vdirection[(vsign+1)/2]", "name": "vword", "description": ""}, "hshift": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-10..10 except 0)", "name": "hshift", "description": ""}, "hvalue": {"group": "Ungrouped variables", "templateType": "anything", "definition": "abs(hshift)", "name": "hvalue", "description": ""}, "vsign": {"group": "Ungrouped variables", "templateType": "anything", "definition": "sign(vshift)", "name": "vsign", "description": ""}, "vdirection": {"group": "Ungrouped variables", "templateType": "anything", "definition": "[\"down\",\"up\"]", "name": "vdirection", "description": ""}, "vshift": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-10..10 except 0)", "name": "vshift", "description": ""}, "hword": {"group": "Ungrouped variables", "templateType": "anything", "definition": "hdirection[(hsign+1)/2]", "name": "hword", "description": ""}, "hdirection": {"group": "Ungrouped variables", "templateType": "anything", "definition": "[\"right\",\"left\"]", "name": "hdirection", "description": ""}, "vvalue": {"group": "Ungrouped variables", "templateType": "anything", "definition": "abs(vshift)", "name": "vvalue", "description": ""}, "hsign": {"group": "Ungrouped variables", "templateType": "anything", "definition": "sign(hshift)", "name": "hsign", "description": ""}, "absx": {"group": "Ungrouped variables", "templateType": "anything", "definition": "\"|x|\"", "name": "absx", "description": ""}}, "variable_groups": [], "parts": [{"showFeedbackIcon": true, "type": "jme", "prompt": "

The transformed function is:

\n

$g(x) =$

", "showPreview": true, "valuegenerators": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "customName": "", "answer": "{absx}+{vshift}", "showCorrectAnswer": true, "failureRate": 1, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "vsetRange": [0, 1], "vsetRangePoints": 5, "useCustomName": false, "checkingType": "absdiff", "variableReplacements": [], "adaptiveMarkingPenalty": 0, "checkingAccuracy": 0.001, "marks": 1, "scripts": {}, "checkVariableNames": false}], "statement": "

GIVEN:  $f(x)=|x|$

\n

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

", "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/"}]}