// Numbas version: finer_feedback_settings {"name": "NCM4 U2 Composition from Tables", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NCM4 U2 Composition from Tables", "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": {}, "extensions": [], "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", "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/"}]}