// Numbas version: finer_feedback_settings {"name": "Math Diagnostic - Sep 26", "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": true, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], [], []], "questions": [{"name": "Algebra vocabulary", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}], "rulesets": {}, "functions": {}, "ungrouped_variables": ["test"], "metadata": {"description": "
A fill-in-the-blank style question to test vocabulary within the topic of Algebra.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "variable_groups": [], "advice": "The words and their definitions are as follows:
\nWord | \nDefinition | \nExample | \n
---|---|---|
Simplify | \nPut into its simplest form. | \nThe following equation, $2a +3a = 5a$ has been simplified . Due to the collection of like terms. | \n
Solve | \nTo obtain a solution to a mathematical problem. | \nSolve $5x = 30$, obtaining the solution $x=6$. | \n
Calculate | \nYou will need to do a sum to reach the answer. | \n5 students measured their heights; calculate the average of their heights. | \n
Variable | \nAn unknown value that is represented by a letter. | \nThe variable x is unknown. | \n
Equation | \nWill always have an equals sign and both sides are equal. | \nJane buys 2 cups and 3 mugs. The total number of cups and mugs can be expressed using the following equation: $ 2+3=5$. | \n
Formula | \nA way of showing a known equation using numbers and letters. | \nThe formula for the area of a triangle is $\\frac{\\mathrm{base} \\times \\mathrm{height}}{2}$. | \n
Expand | \nRemoving the brackets. | \nThe following expression has been expanded: $(x+3)(x-1) = x^2 +2x - 3$. | \n
Factorise | \nTo put in brackets, finding a common factor; this is usually the simplest form. | \nThe expression $2x^2 +4x -6 = 2(x-1)(x+3)$ has been factorised. | \n
Linear | \nAn expression or equation that is plotted as a straight line. | \nAn expression or equation that is plotted as a straight line is said to be linear. | \n
Quadratic | \nAn expression or equation that is plotted as a parabola curve. Will include an $x^2$ term. | \nFor example, $y = x^2+2x-3$. | \n
Term | \nA component of an expression or equation. | \n$5y$ is a term in $3x+5y$. | \n
Coefficient | \nThe number in front of a variable to make a term. | \nIn $2x$, $2$ is the coefficient of $x$. | \n
Parabola | \nThe 'U shaped' curve on a quadratic graph. | \nA banana shape can be described as a parabola | \n
Fill the gaps in the following sentences.
\nIn each case, choose the word which best fits in the sentence.
", "preamble": {"js": "", "css": ""}, "variables": {"test": {"templateType": "anything", "description": "Only here to be able to publish the question.
", "name": "test", "group": "Ungrouped variables", "definition": "random(\"words\")"}}, "parts": [{"variableReplacementStrategy": "originalfirst", "prompt": "The following equation, $2a +3a = 5a$ has been [[0]], due to the collection of like terms.
", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Simplified
", "Expanded
", "Factorised
", "Solved
"], "matrix": ["1", 0, 0, 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "[[0]] $5x = 30$, obtaining the solution $x=6$.
", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Simplify
", "Calculate
", "Divide
", "Solve
"], "matrix": [0, 0, 0, "1"], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "5 students measured their heights. [[0]] the average of their heights.
\n", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Simplify
", "Calculate
", "Divide
", "Solve
"], "matrix": ["0", "1", 0, "0"], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "The [[0]] x is unknown.
\n", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Symbol
", "Term
", "Formula
", "Variable
"], "matrix": ["0", 0, "0", "1"], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "Jane buys 2 cups and 3 mugs. The total number of cups and mugs can be expressed using the following [[0]]: $ 2+3=5$.
", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Variable
", "Equation
", "Formula
", "Linear
"], "matrix": [0, "1", "0", 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "The [[0]] for the area of a triangle is $\\frac{\\mathrm{base} \\times \\mathrm{height}}{2}$.
", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Solution
", "Equation
", "Formula
", "Definition
"], "matrix": ["0", 0, "1", 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "The following expression has been [[0]] $(x+3)(x-1) = x^2 +2x - 3$.
\n", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Multiplied
", "Expanded
", "Factorised
", "Solved
"], "matrix": [0, "1", 0, 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "The expression $2x^2 +4x -6 = 2(x-1)(x+3)$ has been [[0]]
\n", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Simplified
", "Expanded
", "Factorised
", "Calculated
"], "matrix": [0, "0", "1", 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "An expression or equation that is plotted as a straight line is said to be [[0]]
", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Linear
", "Expanded
", "Quadratic
", "Parabola
"], "matrix": ["1", 0, 0, 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "A [[0]] equation will include an $x^2$ term. For example, $y = x^2+2x-3$.
\n", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Linear
", "Quadratic
", "Formula
", "Function
"], "matrix": [0, "1", "0", 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "$5y$ is a [[0]] in $3x+5y$.
", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Variable
", "Term
", "Coefficient
", "Symbol
"], "matrix": [0, "1", 0, 0], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "In $2x$, $2$ is the [[0]] of $x$.
\n", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Constant
", "Coefficient
", "Variable
", "Term
"], "matrix": [0, "1", 0, "0"], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": false, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "prompt": "The 'U shaped' curve on a quadratic graph is called a [[0]].
\n", "gaps": [{"variableReplacementStrategy": "originalfirst", "choices": ["Quadratic
", "Linear
", "Hyperbola
", "Parabola
"], "matrix": [0, 0, 0, "1"], "displayColumns": 0, "maxMarks": 0, "type": "1_n_2", "minMarks": 0, "marks": 0, "variableReplacements": [], "showFeedbackIcon": true, "displayType": "dropdownlist", "shuffleChoices": true, "scripts": {}, "distractors": ["", "", "", ""], "showCorrectAnswer": true}], "variableReplacements": [], "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "marks": 0, "scripts": {}}], "tags": ["algebra", "Algebra", "taxonomy", "vocabulary"], "variablesTest": {"maxRuns": 100, "condition": ""}}, {"name": "Solve a linear equation $ax+b = cx+d$", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "metadata": {"description": "Solve a simple linear equation algebraically. The unknown appears on both sides of the equation.
", "licence": "Creative Commons Attribution 4.0 International"}, "ungrouped_variables": ["d", "f", "g", "h", "x", "gcd_hfdg", "hf_coprime", "dg_coprime", "finalb"], "type": "question", "rulesets": {}, "variable_groups": [], "statement": "", "advice": "We are asked to solve the equation
\n\\[ \\var{d}x-\\var{f}=\\var{g}x+\\var{h} \\]
\nIn this equation, there are $x$ terms and constant terms on both sides of the equals sign.
\nTo solve this equation, we must rearrange it to get $x$ on its own.
\n\\begin{align}
\\var{d}x-\\var{f} &= \\var{g}x+\\var{h} \\\\[0.5em]
\\var{d}x-\\var{g}x &= \\var{h}+\\var{f} & \\text{Move } x \\text{ terms to the left, and constant terms to the right.}\\\\[0.5em]
\\simplify{{d-g}*x} &= {\\var{h+f}} & \\text{Collect like terms together.}\\\\[0.5em]
x &=\\frac{\\var{h+f}}{\\var{d-g}} & \\text{Divide both sides by } \\var{d-g} \\text{.} \\\\[0.5em]
x &= \\simplify{{h+f}/{d-g}}
\\end{align}
$\\var{d}x-\\var{f}=\\var{g}x+\\var{h}$
\nWhat is the value of $x$?
\n$x = $ [[0]]
", "gaps": [{"correctAnswerFraction": false, "showCorrectAnswer": true, "mustBeReducedPC": 0, "showFeedbackIcon": true, "marks": "2", "minValue": "finalb", "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "finalb", "mustBeReduced": false, "allowFractions": false, "variableReplacements": [], "correctAnswerStyle": "plain"}], "showFeedbackIcon": true, "marks": 0}], "tags": ["taxonomy"], "preamble": {"js": "", "css": ""}, "functions": {}, "variables": {"dg_coprime": {"description": "", "group": "Ungrouped variables", "definition": "(d-g)/gcd_hfdg", "name": "dg_coprime", "templateType": "anything"}, "x": {"description": "", "group": "Ungrouped variables", "definition": "random(2..6)", "name": "x", "templateType": "anything"}, "gcd_hfdg": {"description": "", "group": "Ungrouped variables", "definition": "gcd((h+f),(d-g))", "name": "gcd_hfdg", "templateType": "anything"}, "hf_coprime": {"description": "", "group": "Ungrouped variables", "definition": "(h+f)/gcd_hfdg", "name": "hf_coprime", "templateType": "anything"}, "f": {"description": "", "group": "Ungrouped variables", "definition": "random(2..6)", "name": "f", "templateType": "anything"}, "h": {"description": "", "group": "Ungrouped variables", "definition": "(x*(d-g))-f", "name": "h", "templateType": "anything"}, "g": {"description": "", "group": "Ungrouped variables", "definition": "random(2..5)", "name": "g", "templateType": "anything"}, "finalb": {"description": "", "group": "Ungrouped variables", "definition": "hf_coprime/dg_coprime", "name": "finalb", "templateType": "anything"}, "d": {"description": "", "group": "Ungrouped variables", "definition": "random(g+2..8)", "name": "d", "templateType": "anything"}}, "variablesTest": {"maxRuns": 100, "condition": ""}}, {"name": "Solve a linear equation $ax+b = c$", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}], "metadata": {"description": "Solve a linear equation of the form $ax+b = c$, where $a$, $b$ and $c$ are integers.
\nThe answer is always an integer.
", "licence": "Creative Commons Attribution 4.0 International"}, "ungrouped_variables": [], "type": "question", "rulesets": {}, "advice": "We need to solve the equation
\n\\[ \\var{a}x+\\var{b}=\\var{c} \\]
\nTo solve this equation, we must rearrange the equation to put $x$ on its own.
\nTo do this, we should subtract $\\var{b}$ from both sides and then divide through by $\\var{a}$ to get the value for $x$.
\n\\begin{align}
\\var{a}x+\\var{b}&=\\var{c} \\\\[0.5em]
\\var{a}x&=\\var{c}-\\var{b} & \\text{Subtract } \\var{b} \\text{ from both sides} \\\\[0.5em]
\\var{a}x&=\\var{c-b} \\\\[0.5em]
x&=\\frac{\\var{c-b}}{\\var{a}} & \\text{Divide both sides by } \\var{a} \\\\[0.5em]
x&=\\simplify{{c-b}/{a}}
\\end{align}
$\\var{a}x+\\var{b}=\\var{c}$
\nWhat is the value of $x$?
\n$x = $ [[0]]
", "variableReplacements": [], "showFeedbackIcon": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "minValue": "x", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "x", "mustBeReduced": false, "marks": "2", "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReducedPC": 0}]}], "tags": ["linear equation", "linear equations", "Linear equations", "solving linear equations", "taxonomy"], "preamble": {"js": "", "css": ""}, "variable_groups": [{"name": "part a", "variables": ["a", "b", "c", "x"]}], "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}}, {"name": "Expansion of brackets", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Bradley Bush", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1521/"}], "tags": ["brackets", "expanding brackets", "expansion of brackets", "simplifying algebraic expressions", "simplifying expressions", "taxonomy"], "metadata": {"description": "This question is made up of 10 exercises to practice the multiplication of brackets by a single term.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "Expand the expressions below by multiplying each of the terms inside the brackets by the term outside. Give each answer in its simplest form.
", "advice": "Expand brackets using the general formula $\\displaystyle a(x+c)=ax+ac$. This means we multiply each term inside the brackets by the term outside the brackets.
\nIt is easy to forget that the sign outside the brackets also needs to be involved in the multiplication so remember that when two of the same sign are multiplied, the resultant term is positive and when opposite signs are multiplied, the result is negative.
\n\\[
\\begin{align}
\\simplify[terms]{{a[1]}({a[2]}x+{a[3]})}&=
\\simplify[!collectNumbers]{({a[1]}{a[2]})x+({a[1]}{a[3]})}\\\\&
=\\simplify{{a[1]}*{a[2]}x+{a[1]}{a[3]}}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{{a[4]}({a[5]}x+{a[6]})}&=
\\simplify[!collectNumbers]{{a[4]}{a[5]}x+{a[4]}{a[6]}}\\\\&=
\\simplify{{a[4]}*{a[5]}x+{a[4]}{a[6]}}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{{a[7]}({a[8]}x^2+{a[9]}y)}&=
\\simplify[!collectNumbers]{{a[7]}{a[8]}x^2+{a[7]}{a[9]}y}\\\\&=
\\simplify{{a[7]}*{a[8]}x^2+{a[7]}*{a[9]}y}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{{a[10]}({a[11]}x^2+{a[12]}y)}&=
\\simplify[!collectNumbers]{{a[10]}{a[11]}x^2+{a[10]}{a[12]}y}\\\\&=
\\simplify{{a[10]}*{a[11]}x^2+{a[10]}*{a[12]}y}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{{a[13]}x({a[14]}x^2+{a[15]}x+{a[16]})}&=
\\simplify[!collectNumbers]{{a[13]}x{a[14]}x^2+{a[13]}x{a[15]}x+{a[13]}x{a[16]}}\\\\&=
\\simplify{{a[13]}{a[14]}x^3+{a[13]}{a[15]}x^2+{a[13]}{a[16]}x}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{{a[17]}x({a[18]}x^2+{a[19]}x+{a[20]})}&=
\\simplify[!collectNumbers]{{a[17]}x{a[18]}x^2+{a[17]}x{a[19]}x+{a[17]}x{a[20]}}\\\\&=
\\simplify{{a[17]}{a[18]}x^3+{a[17]}{a[19]}x^2+{a[17]}{a[20]}x}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{{a[21]}x({a[22]}x^2+{a[23]}x)+{a[24]}x^2+{a[25]}x^3}&=
\\simplify[!collectNumbers]{x^2({a[21]}{a[23]})+x^2{a[24]}+x^3({a[21]}{a[22]})+x^3{a[25]}}\\\\&=
\\simplify[!collectNumbers]{x^2({a[21]}{a[23]}+{a[24]})+x^3({a[21]}{a[22]}+{a[25]})}\\\\&=
\\simplify{x^2({a[21]}{a[23]}+{a[24]})+x^3({a[21]}{a[22]}+{a[25]})}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{({a[26]}x^2+{a[27]}x^3)+{a[28]}x({a[29]}x^2+{a[30]}x)}&=
\\simplify[!collectNumbers]{x^2({a[26]})+x^2({a[28]}{a[30]})+x^3({a[28]}{a[29]})+x^3({a[27]})}\\\\&=
\\simplify[!collectNumbers]{x^2({a[26]}+{a[28]}{a[30]})+x^3({a[28]}{a[29]}+{a[27]})}\\\\&=
\\simplify{x^2({a[26]}+{a[28]}{a[30]})+x^3({a[28]}{a[29]}+{a[27]})}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{{a[31]}({a[32]}x+{a[33]}y)+{a[34]}x({a[42]}+{a[35]}y)}&=
\\simplify[!collectNumbers]{({a[31]}{a[32]})x+({a[34]}{a[42]})x+{a[31]}{a[33]}y+{a[34]}{a[35]}x*y}\\\\&=
\\simplify[!collectNumbers]{({a[31]}{a[32]}+{a[34]}{a[42]})x+{a[31]}{a[33]}y+{a[34]}{a[35]}x*y}\\\\&=
\\simplify{({a[31]}{a[32]}+{a[34]}{a[42]})x+{a[31]}{a[33]}y+{a[34]}{a[35]}x*y}\\text{.}
\\end{align}
\\]
\\[
\\begin{align}
\\simplify[terms]{{a[36]}a^2({a[37]}+{a[38]}b)+{a[39]}b^2({a[40]}a+{a[41]}b)}&=
\\simplify[!collectNumbers]{{a[37]}{a[36]}a^2+{a[38]}{a[36]}a^2b+{a[40]}{a[39]}a*b^2+{a[39]}{a[41]}b^3}\\\\&=
\\simplify{{a[37]}{a[36]}a^2+{a[38]}{a[36]}a^2b+{a[40]}{a[39]}a*b^2+{a[39]}{a[41]}b^3}\\text{.}
\\end{align}
\\]
$\\simplify{{a[1]}({a[2]}x+{a[3]})}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a[1]*a[2]}x+{a[1]*a[3]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "x*(`+-$n) + `+-$n", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.
", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{{a[4]}({a[5]}x+{a[6]})}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a[4]*a[5]}x+{a[4]*a[6]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "`+-$n*x + `+-$n", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.
", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{{a[7]}({a[8]}x^2+{a[9]}y)}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a[7]*a[8]}x^2+{a[7]*a[9]}y", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "`+-$n*x^2 + `+-$n*y", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.
", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{{a[10]}({a[11]}x^2+{a[12]}y)}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a[10]*a[11]}x^2+{a[10]*a[12]}y", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "`+-$n*x^2 + `+-$n*y", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.
", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{{a[13]}x({a[14]}x^2+{a[15]}x+{a[16]})}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a[13]*a[14]}x^3+{a[13]*a[15]}x^2+{a[13]*a[16]}x", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "`+-$n*x^3 + `+-$n*x^2 + `+-$n*x", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.
", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{{a[17]}x({a[18]}x^2+{a[19]}x+{a[20]})}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a[17]*a[18]}x^3+{a[17]*a[19]}x^2+{a[17]*a[20]}x", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "`+-$n`?*x^3 + `+-$n`?*x^2 + `+-$n`?*x", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.
", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{{a[21]}x({a[22]}x^2+{a[23]}x)+{a[24]}x^2+{a[25]}x^3}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "x^2*{a[21]*a[23]+a[24]}+x^3*{a[21]*a[22]+a[25]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "x^2*`+-$n`? + x^3*`+-$n`?", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{({a[26]}x^2+{a[27]}x^3)+{a[28]}x({a[29]}x^2+{a[30]}x)}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "x^2*{a[26]+a[28]*a[30]} + x^3*{a[28]*a[29]+a[27]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "x^2*`+-$n`? + x^3*`+-$n`?", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{{a[31]}({a[32]}x+{a[33]}y)+{a[34]}x({a[42]}+{a[35]}y)}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a[31]*a[32]+a[34]*a[42]}x+{a[31]*a[33]}y+{a[34]*a[35]}x*y", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "x*(`+-$n) + y*(`+-$n) + x*y*(`+-$n)", "partialCredit": 0, "message": "", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "$\\simplify{{a[36]}a^2({a[37]}+{a[38]}b)+{a[39]}b^2({a[40]}a+{a[41]}b)}=$ [[0]]
", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{a[37]*a[36]}a^2+{a[38]*a[36]}a^2b+{a[40]*a[39]}a*b^2+{a[39]*a[41]}b^3", "answerSimplification": "basic", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "mustmatchpattern": {"pattern": "`+-$n`?*a^2 + `+-$n`?*a^2*b + `+-$n`?*a*b^2 + `+-$n`?*b^3", "partialCredit": 0, "message": "It doesn't look like you've expanded - make sure you don't use any brackets in your answer.
", "nameToCompare": ""}, "valuegenerators": [{"name": "a", "value": ""}, {"name": "b", "value": ""}]}], "sortAnswers": false}], "type": "question"}, {"name": "Create an algebraic expression from a word problem, simplify, and evaluate", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Bradley Bush", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1521/"}], "tags": ["algebraic expressions", "collect terms", "create algebraic expressions", "simplify algebraic expressions", "simplifying algebraic expressions", "taxonomy"], "metadata": {"description": "Given a description in words of the costs of some items in terms of an unknown cost, write down an expression for the total cost of a selection of items. Then simplify the expression, and finally evaluate it at a given point.
\nThe word problem is about the costs of sweets in a sweet shop.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "{pname} eats a lot of sweets. You are trying to work out the cost of the sweets that {pname} ate last week.
\n{pname} ate $\\var{a1}$ packets of lollipops, $\\var{b1}$ packets of toffee and $\\simplify{{c1}}$ packets of jelly sweets.
\nYou know that a packet of toffee costs $£1$ more than a packet of lollipops, and a packet of jelly sweets costs half as much as a packet of toffees.
", "advice": "We are told that the price of a packet of lollipops is represented by the letter $x$.
\nA packet of toffee costs $£1$ more than a packet of lollipops, i.e. $x+1$.
\nA packet of jelly sweets costs half as much as a packet of toffee, so $\\frac{1}{2}(x+1)$.
\nTo find the total cost, multiply the expressions above for the cost of each kind of sweet by the number of packets eaten, and add them together.
\nWithout simplifying, we obtain:
\n\\begin{align}
\\text{Cost} &= \\simplify[]{{a1}x+{b1}(x+1) + {c1}*(1/2)*(x+1)} \\\\
&= \\simplify[]{{a1}x+{b1}(x+1) + {c1/2}*(x+1)}
\\text{.}
\\end{align}
The first step in simplifying this expression is to expand both sets of brackets:
\n\\begin{align}
\\simplify[]{ {a1}x + {b1}(x+1) + {c1/2}*(x+1)} &= \\simplify[]{ {a1}x + {b1}x + {b1}*1 + {c1/2}x + {c1/2}*1} \\\\
&= \\simplify[] { {a1}x + {b1}x + {b1} + {c1/2}x + {c1/2} } \\text{.}
\\end{align}
Finally, collect like terms:
\n\\begin{align}
\\simplify[] { {a1}x + {b1}x + {b1} + {c1/2}x + {c1/2} } &= \\simplify[]{ {a1+b1+c1/2}x + {b1+c1/2} } \\text{.}
\\end{align}
Once we know that the price of a packet of lollipops is $£2$, we can substitute this for $x$ in the equation above.
\n\\begin{align}
\\text{Cost}&=\\simplify{ {a1+b1+c1/2}x+{b1+c1/2} }\\\\
&=\\var{a1+b1+c1/2} \\times 2+\\var{b1+c1/2} \\\\
&=\\var{(a1+b1+c1/2)*2+b1+c1/2} \\text{.}
\\end{align}
So {pname} spent $£\\var{total}$ on sweets last week.
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"b1": {"name": "b1", "group": "Number of packets eaten", "definition": "random(2..10 except a1)", "description": "Number of packets of toffee eaten
", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Number of packets eaten", "definition": "random(2..5)*2", "description": "Number of packets of jelly sweets eaten.
", "templateType": "anything", "can_override": false}, "pname": {"name": "pname", "group": "Ungrouped variables", "definition": "random('Jerry','Jessica')", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Number of packets eaten", "definition": "random(5..10)", "description": "Number of packets of lollipops eaten
", "templateType": "anything", "can_override": false}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "(a1+b1+c1/2)*2 + b1+c1/2", "description": "The total spent.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "gcd(a1,b1+c1/2)=1", "maxRuns": 100}, "ungrouped_variables": ["pname", "total"], "variable_groups": [{"name": "Number of packets eaten", "variables": ["a1", "b1", "c1"]}], "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": "Let the cost of a packet of lollipops be $£x$.
\nWrite an expression in terms of $x$ for the cost of each kind of sweet:
\nLollipops: £[[0]]
\nToffees: £[[1]]
\nJelly sweets: £[[2]]
Write an algebraic expression for the overall cost of the sweets {pname} ate, in terms of $x$.
\n£[[0]]
", "gaps": [{"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": "({a1}+{b1}+{c1}/2)x+({b1}+{c1}/2)", "answerSimplification": "all", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}, {"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": "Now simplify your expression for the total cost.
\n£[[0]]
", "gaps": [{"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": "({a1}+{b1}+{c1}/2)x+({b1}+{c1}/2)", "answerSimplification": "all", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "$n*x + $n", "partialCredit": 0, "message": "Your answer is not fully simplified.", "nameToCompare": ""}, "valuegenerators": [{"name": "x", "value": ""}]}], "sortAnswers": false}, {"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": "You find out that a packet of lollipops costs $£2$.
\nCalculate {pname}'s total expenditure on sweets last week.
\n£[[0]]
", "gaps": [{"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": "({a1}+{b1}+{c1}/2)2+{b1}+{c1}/2", "answerSimplification": "all", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "notallowed": {"strings": ["(", ")"], "showStrings": true, "partialCredit": 0, "message": "Don't use brackets
"}, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "Expand brackets and collect like terms", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Bradley Bush", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1521/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}], "variable_groups": [{"variables": ["a1", "b1", "c1"], "name": "B group"}, {"variables": ["a", "b", "c", "d", "f", "g", "h", "j"], "name": "Part a"}], "variables": {"c": {"templateType": "anything", "description": "", "definition": "repeat(random(2..10),5)", "name": "c", "group": "Part a"}, "c1": {"templateType": "anything", "description": "", "definition": "random(2..5)*2", "name": "c1", "group": "B group"}, "b1": {"templateType": "anything", "description": "", "definition": "random(2..10 except a1)", "name": "b1", "group": "B group"}, "d": {"templateType": "anything", "description": "", "definition": "repeat(random(2..33),6)", "name": "d", "group": "Part a"}, "f": {"templateType": "anything", "description": "", "definition": "repeat(random(2..20),7)", "name": "f", "group": "Part a"}, "j": {"templateType": "anything", "description": "", "definition": "repeat(random(2..20),9)", "name": "j", "group": "Part a"}, "h": {"templateType": "anything", "description": "", "definition": "repeat(random(2..20),7)", "name": "h", "group": "Part a"}, "a1": {"templateType": "anything", "description": "", "definition": "random(5..10)", "name": "a1", "group": "B group"}, "a": {"templateType": "anything", "description": "random variables for part 1
", "definition": "repeat(random(5..15),5)", "name": "a", "group": "Part a"}, "b": {"templateType": "anything", "description": "", "definition": "repeat(random(2..10),5)", "name": "b", "group": "Part a"}, "g": {"templateType": "anything", "description": "", "definition": "repeat(random(2..15),7)", "name": "g", "group": "Part a"}}, "type": "question", "parts": [{"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "useCustomName": false, "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "checkVariableNames": false, "useCustomName": false, "mustmatchpattern": {"nameToCompare": "", "partialCredit": 0, "pattern": "$n*x", "message": "You haven't simplified: you still have two or more like terms that should be collected together."}, "unitTests": [], "answerSimplification": "all", "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "variableReplacements": [], "vsetRange": [0, 1], "maxlength": {"partialCredit": 0, "message": "You must collect like terms to fully simplify.
", "length": "0"}, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "valuegenerators": [{"value": "", "name": "x"}], "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "answer": "({c[1]}+{c[0]}+{c[2]})x", "checkingType": "absdiff", "scripts": {}, "showPreview": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "customMarkingAlgorithm": "", "marks": 0, "variableReplacements": [], "prompt": "$\\var{c[0]}x+\\var{c[1]}x+\\var{c[2]}x=$ [[0]]
", "unitTests": [], "customName": ""}, {"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "useCustomName": false, "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "checkVariableNames": false, "useCustomName": false, "mustmatchpattern": {"nameToCompare": "", "partialCredit": 0, "pattern": "$n*x^2 + $n*x + $n", "message": "You haven't simplified: you still have two or more like terms that should be collected together."}, "unitTests": [], "answerSimplification": "all", "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "vsetRange": [0, 1], "variableReplacements": [], "customMarkingAlgorithm": "", "vsetRangePoints": 5, "valuegenerators": [{"value": "", "name": "x"}], "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "answer": "({a[1]}+{a[2]})x^2+({a[3]}+{a[4]})x+{a[0]}", "checkingType": "absdiff", "scripts": {}, "showPreview": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "customMarkingAlgorithm": "", "marks": 0, "variableReplacements": [], "prompt": "
$\\var{a[1]}x^2+\\var{a[2]}x^2+\\var{a[3]}x+\\var{a[4]}x +\\var{a[0]}=$ [[0]]
You must condense your answer to fully simplify.
", "length": "0"}, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "valuegenerators": [{"value": "", "name": "y"}], "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "answer": "({b[1]}+{b[2]}+{b[3]}+{b[4]}+{b[0]})y^5", "checkingType": "absdiff", "scripts": {}, "showPreview": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "customMarkingAlgorithm": "", "marks": 0, "variableReplacements": [], "prompt": "$\\var{b[0]}y^5+\\var{b[1]}y^5+\\var{b[2]}y^5+\\var{b[4]}y^5+\\var{b[3]}y^5=$ [[0]]
You must condense your answer to fully simplify.
", "length": "0"}, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "valuegenerators": [{"value": "", "name": "a"}, {"value": "", "name": "b"}, {"value": "", "name": "c"}], "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "answer": "{d[0]}a*b+{d[1]+d[5]}*a*b*c+{d[2]}a+{d[3]}b+{d[4]}c", "checkingType": "absdiff", "scripts": {}, "showPreview": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "customMarkingAlgorithm": "", "marks": 0, "variableReplacements": [], "prompt": "$\\var{d[0]}ab+\\var{d[1]}abc+\\var{d[2]}a+\\var{d[3]}b+\\var{d[4]}c+\\var{d[5]}abc=$ [[0]]
", "unitTests": [], "customName": ""}, {"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "useCustomName": false, "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "checkVariableNames": true, "useCustomName": false, "mustmatchpattern": {"nameToCompare": "", "partialCredit": 0, "pattern": "$n*a^2*b + $n*a*b^2 + $n*a*b", "message": "You haven't simplified: you still have two or more like terms that should be collected together."}, "unitTests": [], "answerSimplification": "all", "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "variableReplacements": [], "vsetRange": [0, 1], "maxlength": {"partialCredit": 0, "message": "You must condense your answer to fully simplify.
", "length": "0"}, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "valuegenerators": [{"value": "", "name": "a"}, {"value": "", "name": "b"}], "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "answer": "({f[0]}+{f[3]})a^2b+({f[1]}+{f[4]})a*b^2+({f[2]})a*b", "checkingType": "absdiff", "scripts": {}, "showPreview": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "customMarkingAlgorithm": "", "marks": 0, "variableReplacements": [], "prompt": "$\\var{f[0]}a^2b+\\var{f[1]}ab^2+\\var{f[2]}ab+\\var{f[3]}a^2b+\\var{f[4]}ab^2=$ [[0]]
", "unitTests": [], "customName": ""}, {"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "useCustomName": false, "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "checkVariableNames": false, "useCustomName": false, "mustmatchpattern": {"nameToCompare": "", "partialCredit": 0, "pattern": "$n*x+$n*y", "message": "You haven't simplified: you still have two or more like terms that should be collected together."}, "unitTests": [], "answerSimplification": "all", "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "variableReplacements": [], "vsetRange": [0, 1], "maxlength": {"partialCredit": 0, "message": "You must condense your answer to fully simplify. *'s are not needed to indicate multiplication here.
", "length": "0"}, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "valuegenerators": [{"value": "", "name": "x"}, {"value": "", "name": "y"}], "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "answer": "({g[0]}{g[1]}+{g[4]})x+({g[0]}{g[2]}+{g[5]})y", "checkingType": "absdiff", "scripts": {}, "showPreview": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "customMarkingAlgorithm": "", "marks": 0, "variableReplacements": [], "prompt": "$\\var{g[0]}(\\var{g[1]}x+\\var{g[2]}y)+\\var{g[4]}x+\\var{g[5]}y=$ [[0]]
\n", "unitTests": [], "customName": ""}, {"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "useCustomName": false, "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "checkVariableNames": true, "useCustomName": false, "mustmatchpattern": {"nameToCompare": "", "partialCredit": 0, "pattern": "$n*x*z + $n*x^2 + $n*x + $n*z + $n*z^2", "message": "You haven't simplified: you still have two or more like terms that should be collected together."}, "unitTests": [], "answerSimplification": "all", "showFeedbackIcon": true, "type": "jme", "musthave": {"partialCredit": 0, "message": "", "strings": ["*"], "showStrings": false}, "variableReplacementStrategy": "originalfirst", "failureRate": 1, "notallowed": {"partialCredit": 0, "message": "9You should not have brackets in your answer.
", "strings": ["(", ")"], "showStrings": true}, "variableReplacements": [], "vsetRange": [0, 1], "maxlength": {"partialCredit": 0, "message": "You must condense your answer to fully simplify.
", "length": "0"}, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "valuegenerators": [{"value": "", "name": "x"}, {"value": "", "name": "z"}], "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "answer": "({h[0]}{h[1]}+{h[4]})x^2+({h[0]}{h[2]})z*x+{h[3]}x+{h[5]}z^2+{h[6]}z", "checkingType": "absdiff", "scripts": {}, "showPreview": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "customMarkingAlgorithm": "", "marks": 0, "variableReplacements": [], "prompt": "$\\var{h[0]}x(\\var{h[1]}x+\\var{h[2]}z)+\\var{h[3]}x+\\var{h[6]}z+\\var{h[4]}x^2+\\var{h[5]}z^2=$ [[0]]
", "unitTests": [], "customName": ""}, {"extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "useCustomName": false, "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "checkVariableNames": true, "useCustomName": false, "mustmatchpattern": {"nameToCompare": "", "partialCredit": 0, "pattern": "$n*x + `+-$n*y", "message": "You haven't simplified: you still have two or more like terms that should be collected together."}, "unitTests": [], "answerSimplification": "all", "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "variableReplacements": [], "vsetRange": [0, 1], "maxlength": {"partialCredit": 0, "message": "You must condense your answer to fully simplify.
", "length": "0"}, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "valuegenerators": [{"value": "", "name": "x"}, {"value": "", "name": "y"}], "customName": "", "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "answer": "({j[0]}{j[1]}+{j[4]}{j[3]}+{j[6]}{j[7]})x-({j[0]}{j[2]}+{j[5]}{j[3]}+{j[6]}{j[8]})y", "checkingType": "absdiff", "scripts": {}, "showPreview": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "customMarkingAlgorithm": "", "marks": 0, "variableReplacements": [], "prompt": "$\\var{j[0]}(\\var{j[1]}x-\\var{j[2]}y)+\\var{j[3]}(\\var{j[4]}x-\\var{j[5]}y)+\\var{j[6]}(\\var{j[7]}x-\\var{j[8]}y)=$ [[0]]
", "unitTests": [], "customName": ""}], "advice": "When simplifying expressions, only terms of the same type or like terms can be added together.
\nAlgebraic symbols or letters can be added together provided that they are raised to the same power. For example, we can add $x^2+x^2=2x^2$, but we cannot collect both $x^2$ and $x$ into one term.
\n\\[
\\begin{align}
\\var{c[0]}x+\\var{c[1]}x+\\var{c[2]}x&=(\\var{c[0]}+\\var{c[1]}+\\var{c[2]})x\\\\
&=\\simplify{({c[0]}+{c[1]}+{c[2]})}x
\\end{align}
\\]
\\[
\\begin{align}
\\var{a[1]}x^2+\\var{a[2]}x^2+\\var{a[3]}x+\\var{a[4]}x +\\var{a[0]}&=(\\var{a[1]}+\\var{a[2]})x^2+(\\var{a[3]}+\\var{a[4]})x +\\var{a[0]}\\\\
&=\\simplify{({a[1]}+{a[2]})}x^2+\\simplify{({a[3]}+{a[4]})}x+\\var{a[0]}
\\end{align}
\\]
\\[
\\begin{align}
\\var{b[0]}y^5+\\var{b[1]}y^5+\\var{b[2]}y^5+\\var{b[4]}y^5+\\var{b[3]}y^5&=(\\var{b[0]}+\\var{b[1]}+\\var{b[2]}+\\var{b[4]}+\\var{b[3]})y^5\\\\
&=\\simplify{({b[1]}+{b[2]}+{b[3]}+{b[4]}+{b[0]})}y^5
\\end{align}
\\]
\\[
\\begin{align}
\\var{d[0]}ab+\\var{d[1]}abc+\\var{d[2]}a+\\var{d[3]}b+\\var{d[4]}c+\\var{d[5]}abc
&=(\\var{d[1]}+\\var{d[5]})abc+\\var{d[0]}ab+\\var{d[2]}a+\\var{d[3]}b+\\var{d[4]}c\\\\
&=\\simplify{{d[1]}+{d[5]}}abc+\\var{d[0]}ab+\\var{d[2]}a+\\var{d[3]}b+\\var{d[4]}c
\\end{align}
\\]
\\[
\\begin{align}
\\var{f[0]}a^2b+\\var{f[1]}ab^2+\\var{f[2]}ab+\\var{f[3]}a^2b+\\var{f[4]}ab^2
&=(\\var{f[0]}+\\var{f[3]})a^2b+(\\var{f[1]}+\\var{f[4]})ab^2+\\var{f[2]}ab\\\\
&=\\simplify{{f[0]}+{f[3]}}a^2b+\\simplify{{f[1]}+{f[4]}}ab^2+\\var{f[2]}ab
\\end{align}
\\]
\\[
\\begin{align}
\\var{g[0]}(\\var{g[1]}x+\\var{g[2]}y)+\\var{g[4]}x+\\var{g[5]}y
&=(\\var{g[0]}\\times \\var{g[1]}+\\var{g[4]})x+(\\var{g[0]} \\times\\var{g[2]}+\\var{g[5]})y\\\\
&=(\\simplify{{g[0]}*{g[1]}}+\\var{g[4]})x+(\\simplify{{g[0]}*{g[2]}}+\\var{g[5]})y\\\\
&=\\simplify{{g[0]}*{g[1]}+{g[4]}}x+\\simplify{{g[0]}*{g[2]}+{g[5]}}y
\\end{align}
\\]
\\[
\\begin{align}
\\var{h[0]}x(\\var{h[1]}x+\\var{h[2]}z)+\\var{h[3]}x+\\var{h[6]}z+\\var{h[4]}x^2+\\var{h[5]}z^2
&=(\\simplify[]{{h[0]}{h[1]}}+\\var{h[4]})x^2+(\\simplify[]{{h[0]}{h[2]}})zx+\\var{h[3]}x+\\var{h[5]}z^2+\\var{h[6]}z\\\\
&=(\\simplify{{h[0]}{h[1]}}+\\var{h[4]})x^2+(\\simplify[]{{h[0]}{h[2]}})zx+\\var{h[3]}x+\\var{h[5]}z^2+\\var{h[6]}z\\\\
&=\\simplify{{h[0]}*{h[1]}+{h[4]}}x^2+\\simplify{{h[0]}*{h[2]}}zx+\\simplify{{h[3]}x+{h[5]}}z^2+\\var{h[6]}z
\\end{align}
\\]
\\[
\\begin{align}
\\var{j[0]}(\\var{j[1]}x-\\var{j[2]}y)+\\var{j[3]}(\\var{j[4]}x-\\var{j[5]}y)+\\var{j[6]}(\\var{j[7]}x-\\var{j[8]}y)
&= (\\simplify[]{{j[0]}{j[1]}}+\\simplify[]{{j[3]}{j[4]}}+\\simplify[]{{j[6]}{j[7]}})x-(\\simplify[]{{j[0]}{j[2]}}+\\simplify[]{{j[3]}{j[5]}}+\\simplify[]{{j[6]}{j[8]}})y\\\\
&= (\\simplify{{j[0]}{j[1]}}+\\simplify{{j[3]}{j[4]}}+\\simplify{{j[6]}{j[7]}})x-(\\simplify{{j[0]}{j[2]}}+\\simplify{{j[3]}{j[5]}}+\\simplify{{j[6]}{j[8]}})y\\\\
&= \\simplify{({j[0]}*{j[1]}+{j[4]*j[3]}+{j[6]}*{j[7]})x}-\\simplify{({j[0]}*{j[2]}+{j[5]}{j[3]}+{j[6]}*{j[8]})y}
\\end{align}
\\]
For each expression below, collect like terms and expand brackets.
\nThe *
symbol is required between algebraic symbols, e.g. $5ab^2$ should be written 5*a*b^2
.
Eight expressions, of increasing complexity. The student must simplify them by expanding brackets and collecting like terms.
"}, "variablesTest": {"condition": "", "maxRuns": 100}}, {"name": "Substitute values into formulas", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Aiden McCall", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1592/"}], "metadata": {"description": "Substitute given values into formulas.
", "licence": "Creative Commons Attribution 4.0 International"}, "ungrouped_variables": ["r", "x1", "n", "x2", "const", "sales"], "type": "question", "advice": "When inserting numbers into your calculator make sure you place brackets correctly.
\nAs $x = \\var{n+2}$,
\nsubstitute $\\var{n+2}$ into $\\var{x2}x^2 + \\var{x1}x + \\var{const}$.
\n\\begin{align}
\\var{x2}x^2 + \\var{x1}x + \\var{const} &= \\var{x2} (\\var{n+2})^2 + \\var{x1}(\\var{n+2}) + \\var{const} \\\\
&= \\simplify{{x2} ({n+2})^2 + {x1}({n+2}) + {const}}\\,.
\\end{align}
b)
\nAs $y = \\var{n}$,
\nsubstitute $\\var{n}$ into $\\var{n+1}y^2-\\var{x2}y$.
\n\\begin{align}
\\var{n+1}y^2-\\var{x2}y &= \\var{n+1}(\\var{n})^2-\\var{x2}(\\var{n}) \\\\
&= \\simplify{{n+1}({n})^2-{x2}({n})}\\,.
\\end{align}
c)
As we are given a temperature in degrees Celcius, $T_C = \\var{T_C}°C.$
\nSubstituting $T_C$ into $T_C = 1.8\\,T_C + 32$.
\n\\begin{align}
T_F &=1.8\\, T_C+32 \\\\
&=1.8 (\\var{T_C}) + 32 \\\\
&= \\var{dpformat(1.8 {T_C} +32, 1)}\\,°F\\,.
\\end{align}
Substitute the given values in the equations below.
", "parts": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "minValue": "{x2}{n+2}^2+{x1}{n+2}+{const}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "{x2}{n+2}^2+{x1}{n+2}+{const}", "mustBeReduced": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "A curve is defined by a function $y=\\simplify{{x2}x^2 + {x1}x + {const}}$.
\nWhat is the $y$ coordinate value of the point on the curve at $x=\\var{n+2}$?
\n$y =$ [[0]]
"}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "minValue": "{n+1}{n}^2-{x2}{n}", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "{n+1}{n}^2-{x2}{n}", "mustBeReduced": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "{name[n]} sells luxury yachts.
\nThe predicted sales of the luxury yachts are defined by
\n\\[S=\\simplify{{n+1}y^2-{x2}y},\\]
\nwhere
$S$ is the number of sales predicted this year;
$y$ is the number of luxury yachts sold in the previous year.
{pronoun} sold {n} yachts in the previous year.
\nCalculate $S$, the number of sales predicted this year.
\n$S =$ [[0]]
"}, {"scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showCorrectAnswer": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "minValue": "T_F", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "T_F", "mustBeReduced": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "showCorrectAnswer": true}], "showFeedbackIcon": true, "prompt": "You can convert temperatures from degrees celsius to degrees fahrenheit by using the formula
\n\\[T_F=1.8\\, T_C+32,\\]
\nwhere
$T_F$ = Temperature in $°F$
$T_C$ = Temperature in $°C$.
Convert $\\var{T_C}°C$ into degrees fahrenheit.
\n$T_F =$ [[0]] $°F$
"}], "tags": ["predicted value", "substitution", "Substitution", "taxonomy"], "preamble": {"css": "", "js": ""}, "functions": {}, "variables": {"pronoun": {"description": "Defines the pronoun in the question.
", "definition": "if(mod(n,2)=0,\"He\",\"She\")", "group": "Name variables", "name": "pronoun", "templateType": "anything"}, "T_C": {"description": "Creates a random integer value for the temperature in degrees celcius.
", "definition": "random(5..30#1)", "group": "Temperature conversion", "name": "T_C", "templateType": "anything"}, "name": {"description": "List of names to randomise. Can change to any name inserted
", "definition": "[\"Andrew\",\"Susan\",\"Tom\",\"Geraldine\",\"Joshua\",\"Chantel\"]", "group": "Name variables", "name": "name", "templateType": "anything"}, "n": {"description": "n is a random number between 0 and 4 that picks a name from {name} and then picks the next in the list for the other name such that there is always a male and a female in the question.
", "definition": "random(0..4#1)", "group": "Ungrouped variables", "name": "n", "templateType": "anything"}, "sales": {"description": "", "definition": "(n+1)n^2-x2*n", "group": "Ungrouped variables", "name": "sales", "templateType": "anything"}, "const": {"description": "The constant coefficient
", "definition": "random(1..100#1)", "group": "Ungrouped variables", "name": "const", "templateType": "anything"}, "T_F": {"description": "Creates a value for Temperature in fahrenheit.
", "definition": "T_C*1.8+32", "group": "Temperature conversion", "name": "T_F", "templateType": "anything"}, "r": {"description": "A random variable which will be inputted by the student.
", "definition": "random(1..50#0.1)", "group": "Ungrouped variables", "name": "r", "templateType": "anything"}, "x2": {"description": "The x^2 coefficient
", "definition": "random(1..(n+1)*n)", "group": "Ungrouped variables", "name": "x2", "templateType": "anything"}, "name2": {"description": "List of names to randomise. Can change to any name inserted
", "definition": "[\"Andrew\",\"Susan\",\"Tom\",\"Geraldine\",\"Joshua\",\"Chantel\"]", "group": "Name variables", "name": "name2", "templateType": "anything"}, "x1": {"description": "The x coefficient
", "definition": "random(1..50)", "group": "Ungrouped variables", "name": "x1", "templateType": "anything"}}, "variablesTest": {"maxRuns": 100, "condition": ""}}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "oncompletion"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": true, "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview", "allowrevealanswer": true, "intro": "", "end_message": "", "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [], "reviewshowexpectedanswer": true, "showanswerstate": true, "reviewshowfeedback": true, "showactualmark": true, "showtotalmark": true, "reviewshowscore": true, "reviewshowadvice": true}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Math Center", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26964/"}], "extensions": ["geogebra", "stats"], "custom_part_types": [], "resources": []}