// Numbas version: exam_results_page_options {"name": "NCM4 FE-F2022 Day 2 Unit 2 Piecewise and Composite Functions", "metadata": {"description": "

This test will assess a students ability to work with piecewise and composite functions.

", "licence": "Creative Commons Attribution 4.0 International"}, "duration": 0, "percentPass": "0", "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], [], [], [], []], "questions": [{"name": "NCM4 U2 Evaluate the Functions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

Evaluate the following function at $x=\\var{xValue}$:

\n

\\[  f(x) = \\simplify{ {a} x^2+ {b}x + {c}} \\]

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-15..15 except 0)", "description": "", "templateType": "anything", "can_override": false}, "xValue": {"name": "xValue", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "a*xValue^2+b*xValue+c", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "xValue", "answer"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$f(\\var{xValue})=$

", "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "NCM4 U2 Evaluate the Functions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

Evaluate the following function at $x=\\var{xValue}$:

\n

\\[  f(x) = \\simplify{ {a} x^2+ {b}x + {c}} \\]

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-15..15 except 0)", "description": "", "templateType": "anything", "can_override": false}, "xValue": {"name": "xValue", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "a*xValue^2+b*xValue+c", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "xValue", "answer"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$f(\\var{xValue})=$

", "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "NCM4 U2 Compose Function with Algebraic Expression", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

Evaluate the following:

\n

\\[ f( \\simplify{ {aSub}x+{bSub} } ) \\] given that \\[ f(x) = \\simplify{{a}x^2+{b}x+{c} }\\]

\n

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "aSub": {"name": "aSub", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "bSub": {"name": "bSub", "group": "Ungrouped variables", "definition": "random(-10..10)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "a*aSub^2", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "2*a*aSub*bSub+b*aSub", "description": "", "templateType": "anything", "can_override": false}, "c3": {"name": "c3", "group": "Ungrouped variables", "definition": "a*bSub^2+b*bSub+c", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "aSub", "bSub", "c1", "c2", "c3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{c1}*x^2+{c2}*x+{c3}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "NCM4 U2 Compose Quadratic Function with an Exponential", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

Evaluate the following composition \\[ f( e^{\\simplify{{r}x}}) \\] given:

\n

\\[ f(x) = \\simplify{ {a}x^2+{b}x+{c} } \\]

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-15..15 except 0)", "description": "", "templateType": "anything", "can_override": false}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "r"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a}*e^(2*{r}*x)+{b}*e^({r}*x)+{c}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "NCM4 U2 Compose with Three Given Functions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

GIVEN:

\n

\\[ f(x) = \\simplify{{a}x} \\]

\n

and

\n

\\[ g(x) = e^{\\var{r}x} \\]

\n

and

\n

\\[ h(x) = \\simplify{ {b}x^2+{c} } \\]

\n

\n

FIND:  The following compositions of functions 

\n

Recall that \\[ (f \\circ g)(x) = f(g(x)) \\]

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "r", "b", "c"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": true, "customName": "Part a)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (f \\circ g)(x) \\]

", "answer": "{a}*e^({r}*x)", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (g \\circ f)(x) \\]

", "answer": "e^({r}*{a}*x)", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (h \\circ f)(x) \\]

", "answer": "{a}^2*{b}*x^2+{c}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (g \\circ h)(x) \\]

", "answer": "e^({r}*{b}*x^2+{r}*{c})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (h \\circ g)(x) \\]

", "answer": "{b}*e^(2*{r}*x)+{c}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (f \\circ h)(x) \\]

", "answer": "{a}*{b}*x^2+{a}*{c}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "NCM4 U2 Compose with Rational and Square Root Functions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

GIVEN:

\n

\\[ f(x) = \\frac{\\var{n}}{\\var{a}x^2+\\var{b}} \\]

\n

and

\n

\\[ g(x) = \\sqrt{ \\simplify{x + {c}}} \\]

\n

FIND:  The composition of functions indicated below.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(1..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "xVal": {"name": "xVal", "group": "Ungrouped variables", "definition": "random(-5..5 except (-b))", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "templateType": "anything", "can_override": false}, "ansC": {"name": "ansC", "group": "Ungrouped variables", "definition": "{n}/({a}*xVal+{a}*{c}+{b})", "description": "", "templateType": "anything", "can_override": false}, "ansD": {"name": "ansD", "group": "Ungrouped variables", "definition": "sqrt({n}/({a}*(xVal)^2+{b})+{c})", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "c", "xVal", "n", "ansC", "ansD"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (f \\circ g)(x) \\]

", "answer": "{n}/({a}*x+{a}*{c}+{b})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (g \\circ f)(x) \\]

", "answer": "sqrt({n}/({a}*x^2+{b})+{c})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (f \\circ g)(\\var{xVal}) \\]

", "minValue": "ansC", "maxValue": "ansC", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": "50", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (g \\circ f)(\\var{xVal}) \\]

", "minValue": "ansD", "maxValue": "ansD", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": "90", "precisionType": "dp", "precision": "3", "precisionPartialCredit": "85", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "NCM4 U2 Composition from Tables", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

GIVEN:

\n

{table1}

\n

and

\n

{table2}

\n

FIND: Evaluate the following function compositions.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"fxValues": {"name": "fxValues", "group": "Ungrouped variables", "definition": "map(\nm*xValues[j]+b,\n j,\n 0..numData-1\n)", "description": "", "templateType": "anything", "can_override": false}, "numData": {"name": "numData", "group": "Ungrouped variables", "definition": "9", "description": "", "templateType": "anything", "can_override": false}, "xValues": {"name": "xValues", "group": "Ungrouped variables", "definition": "[-3,-2,-1,0,1,2,3,4,5]", "description": "", "templateType": "anything", "can_override": false}, "table1": {"name": "table1", "group": "Ungrouped variables", "definition": "table(data1,['x','f(x)'])", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-10..10 except 0)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Ungrouped variables", "definition": "random(-2..2 except 0)", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "c3": {"name": "c3", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "", "templateType": "anything", "can_override": false}, "zValues": {"name": "zValues", "group": "Ungrouped variables", "definition": "[-7,-5,-3,-1,1,3,5,7,9]", "description": "", "templateType": "anything", "can_override": false}, "fzValues": {"name": "fzValues", "group": "Ungrouped variables", "definition": "map(\nc1*zValues[j]^2+c2*zValues[j]+c3,\n j,\n 0..numData-1\n)", "description": "", "templateType": "anything", "can_override": false}, "data1": {"name": "data1", "group": "Ungrouped variables", "definition": "map(\n [\nxValues[j],\nfxValues[j]\n ],\n j,\n 0..numData-1\n)", "description": "", "templateType": "anything", "can_override": false}, "data2": {"name": "data2", "group": "Ungrouped variables", "definition": "map(\n [\nzValues[j],\nfzValues[j]\n ],\n j,\n 0..numData-1\n)", "description": "", "templateType": "anything", "can_override": false}, "table2": {"name": "table2", "group": "Ungrouped variables", "definition": "table(data2,['x','g(x)'])", "description": "", "templateType": "anything", "can_override": false}, "ansA": {"name": "ansA", "group": "Ungrouped variables", "definition": "m*(c1+c2+c3)+b", "description": "", "templateType": "anything", "can_override": false}, "ansB": {"name": "ansB", "group": "Ungrouped variables", "definition": "c1*(-m+b)^2 + c2*(-m+b) + c3", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["numData", "xValues", "fxValues", "m", "b", "c1", "c2", "c3", "zValues", "fzValues", "data1", "data2", "table1", "table2", "ansA", "ansB"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (f \\circ g)(1) \\]

", "minValue": "ansA", "maxValue": "ansA", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ (g \\circ f)(-1) \\]

", "minValue": "ansB", "maxValue": "ansB", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Math 3 Evaluate Piecewise Function M/C", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "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": {}, "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})$

"}, {"name": "Math 3 Evaluate Piecewise Function M/C", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "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": {}, "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})$

"}, {"name": "NCM4 Piecewise Function Domain and Range", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

GIVEN:  The function graphed below.

\n

{geogebra_applet(\"https://www.geogebra.org/m/nxtkhrwf\", [[\"shift\",s],[\"xa2\",xa], [\"xb1\",xa]])}

", "advice": "", "rulesets": {}, "variables": {"xa": {"name": "xa", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything"}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "[\"xa2\":xa, \"xb1\":xa]", "description": "", "templateType": "anything"}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["xa", "defs", "s"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Write the domain of the function in interval notation.  For $\\pm\\infty$, please write out \"-infinity\" or \"+infinity\".

", "answer": "(-infinity,+infinity)", "displayAnswer": "(-infinity,+infinity)", "matchMode": "exact"}, {"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Write the range of the funciton in interval notation.  For $\\pm\\infty$, please write out \"-infinity\" or \"+infinity\".

", "answer": "[-{s},+infinity)", "displayAnswer": "[-{s},+infinity)", "matchMode": "exact"}]}]}], "allowPrinting": false, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": false, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "warnifunattempted", "message": "

You have not entered your answer for this question.

"}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": false, "timeout": {"action": "warn", "message": "

Your 80 minutes have expired for this test.

"}, "timedwarning": {"action": "warn", "message": "

You have 5 minutes remaining to complete this test.

"}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "

Please complete each problem.  Be sure to pay attention to any answer entry format directions so that you will not have your answer marked incorrecting for a formatting error.

", "reviewshowscore": true, "reviewshowfeedback": false, "reviewshowexpectedanswer": true, "reviewshowadvice": false, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}], "extensions": ["geogebra"], "custom_part_types": [], "resources": []}