// Numbas version: exam_results_page_options {"name": "Maria's copy of Algebra: Functions, inverses and compositions", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"type": "gapfill", "variableReplacements": [], "useCustomName": false, "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "customName": "", "sortAnswers": false, "extendBaseMarkingAlgorithm": true, "scripts": {}, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "fx[1]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "fx[1]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "hx[2]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "hx[2]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "fgx[3]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "fgx[3]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "ghx[4]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "ghx[4]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "ggx[5]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "ggx[5]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "x[6]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "x[6]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "x[7]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "x[7]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "x[8]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "x[8]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "x[9]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "x[9]"}, {"useCustomName": false, "variableReplacements": [], "mustBeReducedPC": 0, "type": "numberentry", "adaptiveMarkingPenalty": 0, "correctAnswerStyle": "plain", "mustBeReduced": false, "correctAnswerFraction": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "showFractionHint": true, "customMarkingAlgorithm": "", "maxValue": "ggx[10]", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "allowFractions": false, "marks": "0.5", "minValue": "ggx[10]"}, {"useCustomName": false, "showPreview": true, "variableReplacements": [], "type": "jme", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "vsetRange": [0, 1], "checkingAccuracy": 0.001, "checkingType": "absdiff", "showFeedbackIcon": true, "valuegenerators": [{"value": "", "name": "a"}], "checkVariableNames": false, "unitTests": [], "answerSimplification": "all", "vsetRangePoints": 5, "answer": "a+{cg*2}", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "showCorrectAnswer": true, "marks": 1, "failureRate": 1}, {"useCustomName": false, "showPreview": true, "variableReplacements": [], "type": "jme", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "vsetRange": [0, 1], "checkingAccuracy": 0.001, "checkingType": "absdiff", "showFeedbackIcon": true, "valuegenerators": [{"value": "", "name": "p"}], "checkVariableNames": false, "unitTests": [], "answerSimplification": "all", "vsetRangePoints": 5, "answer": "p/{mf}", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "showCorrectAnswer": true, "marks": 1, "failureRate": 1}, {"useCustomName": false, "showPreview": true, "variableReplacements": [], "type": "jme", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "vsetRange": [0, 1], "checkingAccuracy": 0.001, "checkingType": "absdiff", "showFeedbackIcon": true, "valuegenerators": [{"value": "", "name": "s"}], "checkVariableNames": false, "unitTests": [], "answerSimplification": "all", "vsetRangePoints": 5, "answer": "s-{cg}", "customName": "", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "scripts": {}, "showCorrectAnswer": true, "marks": 1, "failureRate": 1}], "marks": 0, "prompt": "

$f(x) = \\simplify{{mf}x+{cf}}$.

\n

$g(x) = \\simplify{{mg}x+{cg}}$.

\n

$h(x) = \\simplify{{mh}x+{ch}}$.

\n

\n

Determine the following.

\n

\n

\n

$f(\\var{x[1]}) =$ [[0]]

\n

$h(\\var{x[2]}) = $ [[1]]

\n

$f(g(\\var{x[3]}))= $ [[2]]

\n

$g(h(\\var{x[4]})) = $ [[3]]

\n

$g(g(\\var{x[5]})) = $ [[4]]

\n

$f^{-1}(\\var{fx[6]}) = $ [[5]]

\n

$h^{-1}(\\var{hx[7]}) = $ [[6]]

\n

$g^{-1}(\\var{gx[8]}) = $ [[7]]

\n

$h^{-1}(\\var{hx[9]}) = $ [[8]]

\n

$g(g(\\var{x[10]})) = $ [[9]]

\n

If $a$ is any number, what is $g(g(a))$?

\n

$g(g(a)) = $ [[10]]

\n

\n

If $p$ is some number, what is $f^{-1}(p)$?

\n

$f^{-1}(p) = $ [[11]]

\n

\n

If $s$ is some number, what is $g^{-1}(s)$?

\n

$g^{-1}(s) = $   [[12]]

"}], "functions": {"eqnline": {"type": "html", "language": "javascript", "parameters": [["m", "number"], ["c", "number"]], "definition": "// This functions plots a cubic with a certain number of\n// stationary points and roots.\n// It creates the board, sets it up, then returns an\n// HTML div tag containing the board.\n\n\n// Max and min x and y values for the axis.\nvar x_min = -6;\nvar x_max = 6;\nvar y_min = -20;\nvar y_max = 20;\n\n\n// First, make the JSXGraph board.\nvar div = Numbas.extensions.jsxgraph.makeBoard(\n '500px',\n '600px',\n {\n boundingBox: [x_min,y_max,x_max,y_min],\n axis: false,\n showNavigation: true,\n grid: true\n }\n);\n\n\n\n\n// div.board is the object created by JSXGraph, which you use to \n// manipulate elements\nvar board = div.board; \n\n// create the x-axis and y-axis\nvar xaxis = board.create('axis',[[0,0],[1,0]]);\n\n// create the y-axis\nvar yaxis = board.create('axis',[[0,0],[0,1]], );\n\n\n\n\n// Plot the function.\n board.create('functiongraph',\n [function(x){ return m*x+c},x_min,x_max]);\n\n\n\nreturn div;"}}, "tags": [], "preamble": {"js": "", "css": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"cg": {"description": "", "definition": "random(-5..5 except 0)", "group": "part a", "templateType": "anything", "name": "cg"}, "mf": {"description": "", "definition": "random(-4..4 except [0,1])", "group": "part a", "templateType": "anything", "name": "mf"}, "hx": {"description": "", "definition": "x*mh+vector(ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch,ch)", "group": "part a", "templateType": "anything", "name": "hx"}, "ghx": {"description": "", "definition": "hx*mg+vector(cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg)", "group": "part a", "templateType": "anything", "name": "ghx"}, "fx": {"description": "", "definition": "x*mf+vector(cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf)", "group": "part a", "templateType": "anything", "name": "fx"}, "mg": {"description": "", "definition": "1", "group": "part a", "templateType": "anything", "name": "mg"}, "cf": {"description": "", "definition": "0", "group": "part a", "templateType": "anything", "name": "cf"}, "ggx": {"description": "", "definition": "gx*mg+vector(cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg)", "group": "part a", "templateType": "anything", "name": "ggx"}, "mh": {"description": "", "definition": "random(2..6)", "group": "part a", "templateType": "anything", "name": "mh"}, "fgx": {"description": "", "definition": "gx*mf+vector(cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf,cf)", "group": "part a", "templateType": "anything", "name": "fgx"}, "ch": {"description": "", "definition": "random(-5..5 except 0)", "group": "part a", "templateType": "anything", "name": "ch"}, "x": {"description": "", "definition": "vector(shuffle(-4..4)+shuffle(-4..4)+shuffle(1..2))", "group": "part a", "templateType": "anything", "name": "x"}, "gx": {"description": "", "definition": "x*mg+vector(cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg,cg)", "group": "part a", "templateType": "anything", "name": "gx"}}, "advice": "

See Lecture 7.1 and Workshop 7.2

", "rulesets": {}, "metadata": {"description": "

A few simple functions are provided of the form ax, x+b and cx+d. Values of the functions, inverses and compositions are asked for. Most are numerical but the last few questions are algebraic.

", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [{"variables": ["mf", "cf", "mg", "cg", "mh", "ch", "x", "fx", "gx", "hx", "fgx", "ghx", "ggx"], "name": "part a"}], "name": "Maria's copy of Algebra: Functions, inverses and compositions", "statement": "", "extensions": ["jsxgraph"], "ungrouped_variables": [], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}