// Numbas version: finer_feedback_settings {"name": "PreCal Transformation of Functions Horizontal Shift", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "extensions": [], "advice": "", "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "

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

\n

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

", "ungrouped_variables": ["hshift", "vshift", "hdirection", "vdirection", "hsign", "vsign", "hword", "vword", "hvalue", "vvalue"], "rulesets": {}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "parts": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "failureRate": 1, "marks": 1, "valuegenerators": [{"value": "", "name": "x"}], "checkingAccuracy": 0.001, "customName": "", "type": "jme", "checkVariableNames": false, "customMarkingAlgorithm": "", "checkingType": "absdiff", "adaptiveMarkingPenalty": 0, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "unitTests": [], "showCorrectAnswer": true, "showPreview": true, "prompt": "

The transformed function is:

\n

$g(x) =$

", "showFeedbackIcon": true, "answer": "(x+{hshift})^3", "vsetRange": [0, 1], "extendBaseMarkingAlgorithm": true}], "functions": {}, "variables": {"vshift": {"definition": "random(-10..10 except 0)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "vshift"}, "hvalue": {"definition": "abs(hshift)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "hvalue"}, "hsign": {"definition": "sign(hshift)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "hsign"}, "hshift": {"definition": "random(-10..10 except 0)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "hshift"}, "vsign": {"definition": "sign(vshift)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "vsign"}, "hword": {"definition": "hdirection[(hsign+1)/2]", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "hword"}, "vvalue": {"definition": "abs(vshift)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "vvalue"}, "vdirection": {"definition": "[\"down\",\"up\"]", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "vdirection"}, "hdirection": {"definition": "[\"right\",\"left\"]", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "hdirection"}, "vword": {"definition": "vdirection[(vsign+1)/2]", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "vword"}}, "name": "PreCal Transformation of Functions Horizontal Shift", "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/"}]}