// Numbas version: exam_results_page_options {"name": "Numbas Input: Algebraic Fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "d"], "name": "Numbas Input: Algebraic Fractions", "tags": ["algebraic input", "brackets", "input", "introduction", "mathematical expressions", "Numbas", "numbas", "Ratios", "ratios"], "preamble": {"css": "", "js": ""}, "advice": "
The correct input is ({a}+{b}x)/({c}+{d}y)
- the rest are incorrect and you should have chosen those.
A correct input is ({b} + {a}y) / ({c} + {d}z)
. Also correct is ({a}y+{b}) / ({c} + {d}z)
etc.
A correct input is ({d}z + {b}) / ((x + {a})*(y + {c}))
.
Note the denominator (the bottom of the ratio) has to have two brackets, i.e. ((x + {a})*(y + {c}))
as otherwise the expression ({d}z + {b}) / (x + {a})*(y + {c})
is seen by the system as $\\displaystyle \\left(\\simplify[std]{({d} * z + {b}) / (x + {a})}\\right) (y + \\var{c})$
A correct input is ({a} -({b}x + {c})*e ^ ( -{2}x)) / ((x + {2*b})*(y -{3*d}))
.
Suppose you want to input the expression $\\displaystyle \\frac{\\var{a}+\\var{b}x}{\\var{c}+\\var{d}y}$.
\nChoose which of the following inputs are incorrect?
\n\n[[0]]
\nAfter you have clicked Submit part, click on Show Feedback and you will be given more detail on your choices.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"maxAnswers": 0, "displayColumns": 1, "matrix": ["-1", 1, 1, 1], "shuffleChoices": true, "variableReplacements": [], "minAnswers": 0, "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "distractors": ["({a}+{b}x)/({c}+{d}y)
{a}+{b}x/({c}+{d}y)
{a}+{b}x/{c}+{d}y
({a}+{b}x)/{c}+{d}y
({a}+{b}x)/({c}+{d}y)
{a}+{b}x/({c}+{d}y)
{a}+{b}x/{c}+{d}y
({a}+{b}x)/{c}+{d}y
Input the expression $\\displaystyle \\frac{\\var{b}+\\var{a}y}{\\var{d}+\\var{c}z}$. [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "({b}+{a}y)/({d}+{c}z)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "Input the expression $\\displaystyle \\frac {\\var{d} z + \\var{b}} {(x + \\var{a}) (y + \\var{c})}$. [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "({d} * z + {b}) / ((x + {a}) * (y + {c}))", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "As a final challenge, input the expression $\\displaystyle \\simplify[std]{({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 * b}) * (y -{3* d}))}$. [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.0001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 b}) * (y -{3* d}))", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "This question shows you how to input algebraic fractions.
\nYou need to be careful to use brackets to show what goes into the numerator (top) and what into the denominator (bottom) of the fraction.
\nRemember that you will see what the system thinks you have entered.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2..16#2)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(3..15#2)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(2..9 except [round(b*c/a),c])", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}}, "metadata": {"description": "Instructions on inputting ratios of algebraic expressions. Could link to calculator input.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}