// Numbas version: exam_results_page_options {"name": "Function defined by { #1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "c", "d", "b0", "b1", "b2", "Answer1", "Answer2", "Input1", "Input2"], "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"b0": {"name": "b0", "definition": "random(1..3)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "b": {"name": "b", "definition": "random(1..3)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "b2": {"name": "b2", "definition": "b1+3", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "d": {"name": "d", "definition": "random(2..8)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "Answer2": {"name": "Answer2", "definition": "{c}*({b2}+4)^2+{d}", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "b1": {"name": "b1", "definition": "b0+2", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "c": {"name": "c", "definition": "random(-2..2 except 0)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "Answer1": {"name": "Answer1", "definition": "{a}*{Input1}+{b}", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "a": {"name": "a", "definition": "random(2..5)", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "Input2": {"name": "Input2", "definition": "{b2}+4", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "Input1": {"name": "Input1", "definition": "b0+1", "group": "Ungrouped variables", "description": "", "templateType": "anything"}}, "advice": "", "variable_groups": [], "statement": "

For the function below

\n

$\\simplify{f}(\\simplify{x})=\\left\\{\\begin{align}&\\simplify{0},&& \\text{ for } \\simplify{x}< \\var{b0}, \\\\&\\simplify{{a}x+{b}},&& \\text{ for } \\var{b0}\\leq \\simplify{x}< \\var{b1},\\\\ &\\simplify{{c}x^2+{d}},&& \\text{ for } x\\geq \\var{b1},\\end{align}\\right.$

", "rulesets": {}, "parts": [{"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "marks": 0, "prompt": "

Find the value of $f(\\var{Input1})$ [[0]]

\n

Find the value of $f(\\var{Input2})$ [[1]]

", "unitTests": [], "variableReplacements": [], "useCustomName": false, "sortAnswers": false, "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "gaps": [{"extendBaseMarkingAlgorithm": true, "failureRate": 1, "vsetRangePoints": 5, "showCorrectAnswer": true, "marks": 1, "valuegenerators": [], "unitTests": [], "vsetRange": [0, 1], "checkingType": "absdiff", "variableReplacements": [], "useCustomName": false, "showFeedbackIcon": true, "checkingAccuracy": 0.001, "scripts": {}, "customMarkingAlgorithm": "", "checkVariableNames": false, "showPreview": true, "customName": "", "variableReplacementStrategy": "originalfirst", "type": "jme", "answer": "{Answer1}"}, {"extendBaseMarkingAlgorithm": true, "failureRate": 1, "vsetRangePoints": 5, "showCorrectAnswer": true, "marks": 1, "valuegenerators": [], "unitTests": [], "vsetRange": [0, 1], "checkingType": "absdiff", "variableReplacements": [], "useCustomName": false, "showFeedbackIcon": true, "checkingAccuracy": 0.001, "scripts": {}, "customMarkingAlgorithm": "", "checkVariableNames": false, "showPreview": true, "customName": "", "variableReplacementStrategy": "originalfirst", "type": "jme", "answer": "{Answer2}"}], "customName": "", "variableReplacementStrategy": "originalfirst", "type": "gapfill"}], "extensions": [], "tags": [], "name": "Function defined by { #1", "metadata": {"description": "find f(a) for a function defined in three intervals", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "preamble": {"js": "", "css": ""}, "functions": {}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Yuri Anissimov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1705/"}, {"name": "Joshua Calcutt", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3267/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Yuri Anissimov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1705/"}, {"name": "Joshua Calcutt", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3267/"}]}