// Numbas version: finer_feedback_settings {"name": "PreCal Transformation of Functions Stretch-Compress Vertically", "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": ""}, "statement": "

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

\n

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

", "parts": [{"checkingType": "absdiff", "showFeedbackIcon": true, "adaptiveMarkingPenalty": 0, "vsetRange": [0, 1], "showPreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "unitTests": [], "type": "jme", "useCustomName": false, "valuegenerators": [{"name": "x", "value": ""}], "checkingAccuracy": 0.001, "failureRate": 1, "customName": "", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "scripts": {}, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "vsetRangePoints": 5, "answer": "{vtransform}abs(x)", "prompt": "

The transformed function is:

\n

$g(x) =$

", "marks": 1}], "name": "PreCal Transformation of Functions Stretch-Compress Vertically", "preamble": {"css": "", "js": ""}, "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "functions": {}, "ungrouped_variables": ["hshift", "vshift", "hdirection", "vdirection", "hsign", "vsign", "hword", "vword", "hvalue", "vvalue", "vtransform", "vtransign", "xreflectchoices", "vtranvalue", "vtranchoice", "vtranswitch", "vtranword", "xreflectword"], "variables": {"vtransign": {"name": "vtransign", "group": "Ungrouped variables", "definition": "sign(vtransform)", "description": "", "templateType": "anything"}, "vdirection": {"name": "vdirection", "group": "Ungrouped variables", "definition": "[\"down\",\"up\"]", "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"}, "hsign": {"name": "hsign", "group": "Ungrouped variables", "definition": "sign(hshift)", "description": "", "templateType": "anything"}, "vtranvalue": {"name": "vtranvalue", "group": "Ungrouped variables", "definition": "abs(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"}, "vtranword": {"name": "vtranword", "group": "Ungrouped variables", "definition": "vtranchoice[vtranswitch]", "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"}, "hdirection": {"name": "hdirection", "group": "Ungrouped variables", "definition": "[\"right\",\"left\"]", "description": "", "templateType": "anything"}, "vshift": {"name": "vshift", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "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"}, "xreflectword": {"name": "xreflectword", "group": "Ungrouped variables", "definition": "xreflectchoices[(vtransign+1)/2]", "description": "", "templateType": "anything"}}, "advice": "", "extensions": [], "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/"}]}