// Numbas version: exam_results_page_options {"name": "PreCal Transformation of Functions ALL COMBINED", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "rulesets": {}, "functions": {}, "preamble": {"css": "", "js": ""}, "metadata": {"description": "", "licence": "All rights reserved"}, "parts": [{"scripts": {}, "showCorrectAnswer": true, "useCustomName": false, "answer": "{vtransform}(x+{hshift})^2+{vshift}", "showPreview": true, "failureRate": 1, "variableReplacementStrategy": "originalfirst", "marks": 1, "prompt": "

The transformed function is:

\n

$g(x) =$

", "adaptiveMarkingPenalty": 0, "checkVariableNames": false, "vsetRange": [0, 1], "variableReplacements": [], "vsetRangePoints": 5, "type": "jme", "checkingAccuracy": 0.001, "unitTests": [], "checkingType": "absdiff", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "customName": "", "valuegenerators": [{"name": "x", "value": ""}]}], "extensions": [], "name": "PreCal Transformation of Functions ALL COMBINED", "statement": "

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

\n

FIND:  Write the function $g(x)$ such that $f(x)$ is:

\n

has a vertical shift of $f(x)$ $\\var{vvalue}$ units $\\var{vword}$ and a horizontal shift of $\\var{hvalue}$ units $\\var{hword}$,

\n

$\\var{vtranword}$ by a factor of $\\var{vtranvalue}$ and $\\var{xreflectword}$

\n

", "advice": "", "tags": [], "ungrouped_variables": ["hshift", "vshift", "hdirection", "vdirection", "hsign", "vsign", "hword", "vword", "hvalue", "vvalue", "vtransform", "vtransign", "xreflectchoices", "vtranvalue", "vtranchoice", "vtranswitch", "vtranword", "xreflectword", "htransform", "htransign", "htranchoices", "htranword", "htranvalue", "yreflectchoices", "htranswitch", "yreflectword"], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"htransform": {"description": "", "name": "htransform", "definition": "random(-5..5#0.1 except [-1,0,1])", "group": "Ungrouped variables", "templateType": "anything"}, "yreflectchoices": {"description": "", "name": "yreflectchoices", "definition": "[\"reflected over the y-axis\", \"not reflected over the y-axis\"]", "group": "Ungrouped variables", "templateType": "anything"}, "xreflectchoices": {"description": "", "name": "xreflectchoices", "definition": "[\"reflects over the x-axis\",\"has no reflection over the x-axis\"]", "group": "Ungrouped variables", "templateType": "anything"}, "vtranswitch": {"description": "", "name": "vtranswitch", "definition": "award(1,floor(vtranvalue)<>0)", "group": "Ungrouped variables", "templateType": "anything"}, "vshift": {"description": "", "name": "vshift", "definition": "random(-10..10 except 0)", "group": "Ungrouped variables", "templateType": "anything"}, "vtranvalue": {"description": "", "name": "vtranvalue", "definition": "abs(vtransform)", "group": "Ungrouped variables", "templateType": "anything"}, "vvalue": {"description": "", "name": "vvalue", "definition": "abs(vshift)", "group": "Ungrouped variables", "templateType": "anything"}, "hdirection": {"description": "", "name": "hdirection", "definition": "[\"right\",\"left\"]", "group": "Ungrouped variables", "templateType": "anything"}, "vdirection": {"description": "", "name": "vdirection", "definition": "[\"down\",\"up\"]", "group": "Ungrouped variables", "templateType": "anything"}, "htransign": {"description": "", "name": "htransign", "definition": "sign(htransform)", "group": "Ungrouped variables", "templateType": "anything"}, "vword": {"description": "", "name": "vword", "definition": "vdirection[(vsign+1)/2]", "group": "Ungrouped variables", "templateType": "anything"}, "htranword": {"description": "", "name": "htranword", "definition": "htranchoices[htranswitch]", "group": "Ungrouped variables", "templateType": "anything"}, "vtranchoice": {"description": "", "name": "vtranchoice", "definition": "[\"compressed vertically\",\"stretched vertically\"]", "group": "Ungrouped variables", "templateType": "anything"}, "hword": {"description": "", "name": "hword", "definition": "hdirection[(hsign+1)/2]", "group": "Ungrouped variables", "templateType": "anything"}, "vsign": {"description": "", "name": "vsign", "definition": "sign(vshift)", "group": "Ungrouped variables", "templateType": "anything"}, "xreflectword": {"description": "", "name": "xreflectword", "definition": "xreflectchoices[(vtransign+1)/2]", "group": "Ungrouped variables", "templateType": "anything"}, "yreflectword": {"description": "", "name": "yreflectword", "definition": "yreflectchoices[(htransign+1)/2]", "group": "Ungrouped variables", "templateType": "anything"}, "vtranword": {"description": "", "name": "vtranword", "definition": "vtranchoice[vtranswitch]", "group": "Ungrouped variables", "templateType": "anything"}, "hvalue": {"description": "", "name": "hvalue", "definition": "abs(hshift)", "group": "Ungrouped variables", "templateType": "anything"}, "vtransform": {"description": "", "name": "vtransform", "definition": "random(-5..5#0.1 except [-1,0,1])", "group": "Ungrouped variables", "templateType": "anything"}, "htranvalue": {"description": "", "name": "htranvalue", "definition": "abs(htransform)", "group": "Ungrouped variables", "templateType": "anything"}, "hshift": {"description": "", "name": "hshift", "definition": "random(-10..10 except 0)", "group": "Ungrouped variables", "templateType": "anything"}, "hsign": {"description": "", "name": "hsign", "definition": "sign(hshift)", "group": "Ungrouped variables", "templateType": "anything"}, "htranswitch": {"description": "", "name": "htranswitch", "definition": "award(1,floor(htranvalue)<>0)", "group": "Ungrouped variables", "templateType": "anything"}, "htranchoices": {"description": "", "name": "htranchoices", "definition": "[\"stretched horizontally\",\"compressed horizontally\"]", "group": "Ungrouped variables", "templateType": "anything"}, "vtransign": {"description": "", "name": "vtransign", "definition": "sign(vtransform)", "group": "Ungrouped variables", "templateType": "anything"}}, "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/"}]}