// Numbas version: exam_results_page_options {"name": "PreCal Transformation of Functions Stretch-Compress Horizontally", "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", "vtransform", "vtransign", "xreflectchoices", "vtranvalue", "vtranchoice", "vtranswitch", "vtranword", "xreflectword", "htransform", "htransign", "htranchoices", "htranword", "htranvalue", "yreflectchoices", "htranswitch", "yreflectword"], "rulesets": {}, "name": "PreCal Transformation of Functions Stretch-Compress Horizontally", "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": "abs({htransform}x)", "prompt": "

The transformed function is:

\n

$g(x) =$

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

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

\n

FIND:  Write the function $g(x)$ such that $f(x)$ is $\\var{htranword}$ by a factor of $\\var{htranvalue}$ and $\\var{yreflectword}$.

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