// Numbas version: finer_feedback_settings {"name": "PreCal Transformation of Functions Horizontal Shift and Vertical Shift", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "preamble": {"js": "", "css": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "tags": [], "ungrouped_variables": ["hshift", "vshift", "hdirection", "vdirection", "hsign", "vsign", "hword", "vword", "hvalue", "vvalue"], "functions": {}, "name": "PreCal Transformation of Functions Horizontal Shift and Vertical Shift", "advice": "", "metadata": {"licence": "All rights reserved", "description": ""}, "extensions": [], "variables": {"vshift": {"definition": "random(-10..10 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "vshift", "description": ""}, "vword": {"definition": "vdirection[(vsign+1)/2]", "templateType": "anything", "group": "Ungrouped variables", "name": "vword", "description": ""}, "hshift": {"definition": "random(-10..10 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "hshift", "description": ""}, "hvalue": {"definition": "abs(hshift)", "templateType": "anything", "group": "Ungrouped variables", "name": "hvalue", "description": ""}, "vvalue": {"definition": "abs(vshift)", "templateType": "anything", "group": "Ungrouped variables", "name": "vvalue", "description": ""}, "vdirection": {"definition": "[\"down\",\"up\"]", "templateType": "anything", "group": "Ungrouped variables", "name": "vdirection", "description": ""}, "vsign": {"definition": "sign(vshift)", "templateType": "anything", "group": "Ungrouped variables", "name": "vsign", "description": ""}, "hword": {"definition": "hdirection[(hsign+1)/2]", "templateType": "anything", "group": "Ungrouped variables", "name": "hword", "description": ""}, "hdirection": {"definition": "[\"right\",\"left\"]", "templateType": "anything", "group": "Ungrouped variables", "name": "hdirection", "description": ""}, "hsign": {"definition": "sign(hshift)", "templateType": "anything", "group": "Ungrouped variables", "name": "hsign", "description": ""}}, "parts": [{"showFeedbackIcon": true, "type": "jme", "prompt": "
The transformed function is:
\n$g(x) =$
", "showPreview": true, "valuegenerators": [{"value": "", "name": "x"}], "variableReplacementStrategy": "originalfirst", "unitTests": [], "customName": "", "answer": "(x+{hshift})^2+{vshift}", "showCorrectAnswer": true, "failureRate": 1, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "vsetRange": [0, 1], "vsetRangePoints": 5, "useCustomName": false, "checkingType": "absdiff", "adaptiveMarkingPenalty": 0, "variableReplacements": [], "checkingAccuracy": 0.001, "marks": 1, "scripts": {}, "checkVariableNames": false}], "statement": "GIVEN: $f(x)=x^2$
\nFIND: Write the function $g(x)$ that has a horizontal shift of $f(x)$ $\\var{hvalue}$ units $\\var{hword}$, and $\\var{vvalue}$ units $\\var{vword}$.
", "type": "question", "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/"}]}