// Numbas version: exam_results_page_options {"name": "HELM Book 2.1.2 Exercises", "metadata": {"description": "

HELM book 2.1.2 exercises

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 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": "2.1.2.1 What is an argument", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

\"Explain what is meant by the argument of a function.\"

\n

Unmarked: Answer: \"The argument is the input.\"

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Explain what is meant by the argument of a function.

", "advice": "

The argument is the input.

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "2.1.2.2 Evaluate a function version 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Evaluate a given, randomised, linear function at a given, randomised, value.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Given the function $\\var{fe}(\\var{ve})=\\var{expr}$ find $\\var{fe}(\\var{c[2]})$

", "advice": "

$\\var{fe}(\\var{ve})=\\var{expr}$

\n

$\\var{fe}(\\var{c[2]})=(\\var{c[0]})(\\var{c[2]})\\var{latex(sgn)}\\var{abs(c[1])}=\\var{ans}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"fe": {"name": "fe", "group": "Ungrouped variables", "definition": "expression(f)", "description": "", "templateType": "anything", "can_override": false}, "ve": {"name": "ve", "group": "Ungrouped variables", "definition": "expression(v)", "description": "", "templateType": "anything", "can_override": false}, "expr": {"name": "expr", "group": "Ungrouped variables", "definition": "simplify(expression(\n c[0]+\"*\"+v+\"+\"+c[1]\n ),[\"basic\",\"unitFactor\"])", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "[\n random(-9..9 except 0),\n random(-9..9 except 0),\n decimal(random([random(-9..9 except 0)/10,random(-90..90 except 0)/100,random(-9..9 except 0)]))\n]", "description": "", "templateType": "anything", "can_override": false}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(\"f\",\"g\",\"h\")", "description": "", "templateType": "anything", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "random(\"t\",\"p\",\"x\",\"y\",\"z\",\"w\")", "description": "", "templateType": "anything", "can_override": false}, "working": {"name": "working", "group": "Ungrouped variables", "definition": "expression(\n \"(\"+c[0]+\")*(\"+c[2]+\")\"+sgn+abs(c[1])\n)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "c[0]*c[2]+c[1]", "description": "", "templateType": "anything", "can_override": false}, "sgn": {"name": "sgn", "group": "Ungrouped variables", "definition": "if(c[1]>0,\"+\",\"-\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["f", "fe", "v", "ve", "c", "sgn", "expr", "working", "ans"], "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, "minValue": "{ans}", "maxValue": "{ans}", "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": "2.1.2.3 Evaluate a function version 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Give f(x)=ax^2+b a simple function input (like 6x-3) and evaluate. Constants and variables, and the function input are all randomised.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Given the function $\\var{fe}(\\var{ve})=\\var{fn}$ find $\\var{fe}(\\var{vale})$

", "advice": "

Given $\\var{fe}(\\var{ve})=\\var{fn}$

\n

$\\displaystyle{\\var{fe}(\\var{vale})= \\var{c[0]}(\\var{vale})^2\\var{latex(sgn)}\\var{abs(c[1])}=\\var{ans}}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"f": {"name": "f", "group": "Ungrouped variables", "definition": "random(\"f\",\"g\",\"h\")", "description": "", "templateType": "anything", "can_override": false}, "fe": {"name": "fe", "group": "Ungrouped variables", "definition": "expression(f)", "description": "", "templateType": "anything", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "random(\"t\",\"p\",\"y\",\"z\",\"w\")", "description": "", "templateType": "anything", "can_override": false}, "ve": {"name": "ve", "group": "Ungrouped variables", "definition": "expression(v)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "repeat( random(-9..9 except [-1,0,1]),5)", "description": "", "templateType": "anything", "can_override": false}, "sgn": {"name": "sgn", "group": "Ungrouped variables", "definition": "if(c[1]>0,\"+\",\"-\")", "description": "", "templateType": "anything", "can_override": false}, "fn": {"name": "fn", "group": "Ungrouped variables", "definition": "simplify(expression(\n c[0]+\"*\"+v+\"^2+\"+c[1]\n ),[\"basic\",\"unitFactor\"])", "description": "

the function

", "templateType": "anything", "can_override": false}, "val": {"name": "val", "group": "Ungrouped variables", "definition": "[\"x\",\n c[2]+\"x\",\n \"-x\",\n c[3]+\"x+\"+c[4],\n c[3]+v+\"+\"+c[4],\n \"m\",\n v+\"-n\",\n v+\"/a\"\n ][idx]", "description": "

The value to feed into the function.

", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..7)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "simplify(expression(\n c[0]+\"*(\"+val+\")*(\"+val+\")+\"+c[1]\n ),[\"expandBrackets\",\"all\",\"!noLeadingMinus\"])", "description": "", "templateType": "anything", "can_override": false}, "vale": {"name": "vale", "group": "Ungrouped variables", "definition": "simplify(expression(val),\"basic\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["f", "fe", "v", "ve", "c", "sgn", "fn", "idx", "val", "vale", "ans"], "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": "{ans}", "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": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "2.1.2.4 Evaluate f(x+h)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given one of ax^2, ax^3, a/x (where a is a positive integer), calculate f(x+h) and f(x+h)-f(x) 

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Given the function $f(x)=\\var{fn}$

", "advice": "

Given $f(x)=\\var{fn}$

\n

(a) $\\displaystyle{f(x+h)= \\var{ans1}}$

\n

(b) $\\displaystyle{f(x+h)-f(x) = \\var{ans2} = \\var{ans2sim}  }$

\n

(b) $\\displaystyle{f(x+h)-f(x) = \\var{ans2} = \\var{ans2bits} = \\var{ans2sim}  }$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "fn": {"name": "fn", "group": "Ungrouped variables", "definition": "expression([c+\"*x^2\",c+\"*x^3\",c+\"/x\"][idx])", "description": "

the function

", "templateType": "anything", "can_override": false}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "expression([c+\"*(x+h)^2\",c+\"*(x+h)^3\",c+\"/(x+h)\"][idx])", "description": "

The value to feed into the function.

", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "expression([\n c+\"*(x+h)^2-(\"+c+\"*(x)^2)\",\n c+\"*(x+h)^3-(\"+c+\"*(x)^3)\",\n c+\"/(x+h)-(\"+c+\"/x)\"\n ][idx])", "description": "", "templateType": "anything", "can_override": false}, "ans2sim": {"name": "ans2sim", "group": "Ungrouped variables", "definition": "simplify(\nexpression(\n [c+\"*2*x*h+h^2*\"+c,\n c+\"*3*x^2*h+3*\"+c+\"*x*h^2+\"+c+\"*h^3\",\n \"(-1*\"+c+\")/(x(x+h))\"][idx]),\n[\"expandBrackets\",\"all\",\"!noleadingMinus\",\"cancelTerms\"]) ", "description": "", "templateType": "anything", "can_override": false}, "ans2bits": {"name": "ans2bits", "group": "Ungrouped variables", "definition": "expression([\n \"(\"+c+\"*x^2+\"+c+\"*2*x*h+\"+c+\"*h^2)-(\"+c+\"*(x)^2)\",\n \"(\"+c+\"*x^3+\"+c+\"*3*x^2*h+\"+c+\"*3*x*h^2+\"+c+\"*h^3)-(\"+c+\"*(x)^3)\",\n c+\"/(x+h)-(\"+c+\"/x)\"\n ][idx])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["c", "fn", "idx", "ans1", "ans2", "ans2bits", "ans2sim"], "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": "

find $f(x+h)$

", "answer": "{ans1}", "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": []}, {"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": "

Find $f(x+h)-f(x)$

", "answer": "{ans2}", "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": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "2.1.2.5 Evaluate a function version 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "tags": [], "metadata": {"description": "

Given f(x)=1/(a-x)^2, evaluate f(x/z) where a is a randomised constant, and z is a randomised letter.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Given $\\displaystyle{f(x)=\\frac{1}{(\\var{a}-x)^2}}$, evaluate $\\displaystyle{ f\\left( \\frac{x}{\\var{ve}}\\right) }$

", "advice": "

\\[\\begin{align*} f\\left( \\frac{x}{\\var{ve}}\\right)&= \\var{ans}\\\\ &= \\frac{1}{\\var{a}^2-2\\times\\var{a}\\frac{x}{\\var{ve}}+\\frac{x^2}{\\var{ve}^2} }\\\\&=\\frac{1}{\\frac{\\var{ve}^2\\var{a}^2-\\var{2*a}\\var{ve}x+x^2}{\\var{ve}^2}}\\\\&=\\frac{\\var{ve}^2}{\\var{a^2}\\var{ve}^2-\\var{2*a}\\var{ve}x+x^2}\\end{align*}\\]

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "ve": {"name": "ve", "group": "Ungrouped variables", "definition": "latex(v)", "description": "", "templateType": "anything", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "random(\"a\",\"b\",\"c\",\"d\",\"g\")", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "expression(\n \"1/(\"+a+\"-(x/\"+v+\"))^2\"\n )", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "v", "ve", "ans"], "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": "{ans}", "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": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "menu", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "allowAttemptDownload": false, "downloadEncryptionKey": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "

This quiz is a Numbas implementation of the Helping Engineers Learn Maths (HELM) booklet 2.1, Basic concepts of functions exercises.

\n

Questions generally have multiple versions, clicking the \"Try another question like this one\" button will generate a new version.

", "end_message": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": []}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}], "extensions": [], "custom_part_types": [], "resources": []}