// Numbas version: exam_results_page_options {"name": "Function defined by { #2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Function defined by { #2", "tags": [], "metadata": {"description": "find f(a) for a function defined in three intervals", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

For the function below

\n

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

\n

", "advice": "", "rulesets": {}, "extensions": [], "variables": {"Answer2": {"name": "Answer2", "group": "Ungrouped variables", "definition": "{c}*({b2}+4)^2-{d}", "description": "", "templateType": "anything"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(2..8)", "description": "", "templateType": "anything"}, "Answer1": {"name": "Answer1", "group": "Ungrouped variables", "definition": "{b}-{a}*{Input1}", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything"}, "b0": {"name": "b0", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything"}, "Input2": {"name": "Input2", "group": "Ungrouped variables", "definition": "{b2}+4", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything"}, "Input1": {"name": "Input1", "group": "Ungrouped variables", "definition": "b0+1", "description": "", "templateType": "anything"}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "b1+3", "description": "", "templateType": "anything"}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "b0+2", "description": "", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-2..2 except 0)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "d", "b0", "b1", "b2", "Answer1", "Answer2", "Input1", "Input2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

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

\n

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

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{Answer1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{Answer2}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "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/"}]}