// Numbas version: exam_results_page_options {"name": "Math 3 Evaluate Piecewise Function M/C", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Math 3 Evaluate Piecewise Function M/C", "ungrouped_variables": ["xbound", "m1", "b1", "m2", "b2", "ansA", "ansB", "ansC", "ansD"], "functions": {}, "preamble": {"js": "", "css": ""}, "variables": {"xbound": {"group": "Ungrouped variables", "name": "xbound", "description": "", "definition": "random(-5..5)", "templateType": "anything"}, "ansA": {"group": "Ungrouped variables", "name": "ansA", "description": "", "definition": "m1*xbound+b1", "templateType": "anything"}, "ansD": {"group": "Ungrouped variables", "name": "ansD", "description": "", "definition": "-m2*xbound+b2", "templateType": "anything"}, "b1": {"group": "Ungrouped variables", "name": "b1", "description": "", "definition": "random(-10..10)", "templateType": "anything"}, "b2": {"group": "Ungrouped variables", "name": "b2", "description": "", "definition": "random(-10..10)", "templateType": "anything"}, "ansC": {"group": "Ungrouped variables", "name": "ansC", "description": "", "definition": "-m1*xbound+b1", "templateType": "anything"}, "m1": {"group": "Ungrouped variables", "name": "m1", "description": "", "definition": "random(-5..5 except 0)", "templateType": "anything"}, "m2": {"group": "Ungrouped variables", "name": "m2", "description": "", "definition": "random(-5..5 except [0,m1])", "templateType": "anything"}, "ansB": {"group": "Ungrouped variables", "name": "ansB", "description": "", "definition": "m2*xbound+b2", "templateType": "anything"}}, "parts": [{"displayType": "radiogroup", "maxMarks": 0, "showCorrectAnswer": true, "shuffleChoices": false, "unitTests": [], "customName": "", "marks": 0, "adaptiveMarkingPenalty": 0, "variableReplacements": [], "type": "1_n_2", "customMarkingAlgorithm": "", "choices": ["$\\var{ansA}$", "$\\var{ansB}$", "$\\var{ansC}$", "$\\var{ansD}$"], "showFeedbackIcon": true, "showCellAnswerState": true, "useCustomName": false, "variableReplacementStrategy": "originalfirst", "minMarks": 0, "matrix": [0, "1", 0, 0], "scripts": {}, "displayColumns": 0, "extendBaseMarkingAlgorithm": true, "distractors": ["", "", "", ""]}], "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "extensions": [], "tags": [], "variable_groups": [], "advice": "", "metadata": {"licence": "All rights reserved", "description": ""}, "statement": "

GIVEN:

\n

$\\simplify{f}(\\simplify{x})=\\left\\{\\begin{align}&\\simplify{{m1}*x+{b1}},&& \\text{ for } \\simplify{x}< \\var{xbound}, \\\\&\\simplify{{m2}x+{b2}},&& \\text{ for } {x}\\geq \\var{xbound}\\end{align}\\right.$

\n

\n

FIND:  $f(\\var{xbound})$

", "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/"}]}