// Numbas version: finer_feedback_settings {"name": "Hussam's copy of Hussam's copy of How to enter algebraic fractions - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "variables": {"d": {"definition": "random(2..9 except [round(b*c/a),c])", "templateType": "anything", "name": "d", "group": "Ungrouped variables", "description": ""}, "c": {"definition": "random(2..9)", "templateType": "anything", "name": "c", "group": "Ungrouped variables", "description": ""}, "a": {"definition": "random(2..16#2)", "templateType": "anything", "name": "a", "group": "Ungrouped variables", "description": ""}, "b": {"definition": "random(3..15#2)", "templateType": "anything", "name": "b", "group": "Ungrouped variables", "description": ""}}, "extensions": [], "name": "Hussam's copy of Hussam's copy of How to enter algebraic fractions - Getting Started", "variable_groups": [], "ungrouped_variables": ["a", "c", "b", "d"], "rulesets": {"std": ["all", "!collectNumbers"]}, "tags": ["algebraic input", "brackets", "checked2015", "input", "introduction", "mathematical expressions", "numbas", "Numbas", "ratios", "Ratios"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
Inputting ratios of algebraic expressions.
"}, "advice": "a) The correct input is ({a}+{b}x)/({c}+{d}y)
- the rest are incorrect and you should have ticked those.
b) A correct input is ({b} + {a}y) / ({c} + {d}z)
. Also correct is ({a}y+{b}) / ({c} + {d}z)
etc.
c) 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})$
d) A correct input is ({a} -({b}x + {c})*e ^ ( -{2}x)) / ((x + {2*b})*(y -{3*d}))
Examples
\nSuppose we wanted to input the expression $\\displaystyle \\frac{\\var{a}+\\var{b}x}{\\var{c}+\\var{d}y}$ into the system.
\nWhich of the following input expressions are incorrect?
\n[[0]]
\nChoose the incorrect input(s): (You lose 3 marks if you choose the wrong one!)
\nIf you click on Submit part, then on Show feedback, you will be given more detail on your choices.
\nYou can click on Reveal at the top of the window to see solutions, but it's best to work these through yourself. Remember you can always redo the question by clicking on Try another question like this one at the bottom.
", "marks": 0, "scripts": {}, "gaps": [{"scripts": {}, "displayColumns": 1, "maxMarks": 0, "maxAnswers": 0, "minMarks": 0, "choices": ["({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}$ here: [[0]]
", "marks": 0, "scripts": {}, "gaps": [{"scripts": {}, "type": "jme", "variableReplacementStrategy": "originalfirst", "vsetrangepoints": 5, "answer": "({b}+{a}y)/({d}+{c}z)", "checkvariablenames": false, "marks": 1, "checkingtype": "absdiff", "expectedvariablenames": [], "variableReplacements": [], "showpreview": true, "showCorrectAnswer": true, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "answersimplification": "std"}]}, {"variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "prompt": "Input the expression $\\displaystyle \\frac {\\var{d} z + \\var{b}} {(x + \\var{a}) (y + \\var{c})}$ here: [[0]]
", "marks": 0, "scripts": {}, "gaps": [{"scripts": {}, "type": "jme", "variableReplacementStrategy": "originalfirst", "vsetrangepoints": 5, "answer": "({d} * z + {b}) / ((x + {a}) * (y + {c}))", "checkvariablenames": false, "marks": 1, "checkingtype": "absdiff", "expectedvariablenames": [], "variableReplacements": [], "showpreview": true, "showCorrectAnswer": true, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "answersimplification": "std"}]}, {"variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "prompt": "Input the expression $\\displaystyle \\simplify[std]{({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 * b}) * (y -{3* d}))}$ here: [[0]]
", "marks": 0, "scripts": {}, "gaps": [{"scripts": {}, "type": "jme", "variableReplacementStrategy": "originalfirst", "vsetrangepoints": 5, "answer": "({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 b}) * (y -{3* d}))", "checkvariablenames": false, "marks": 1, "checkingtype": "absdiff", "expectedvariablenames": [], "variableReplacements": [], "showpreview": true, "showCorrectAnswer": true, "vsetrange": [0, 1], "checkingaccuracy": 0.0001, "answersimplification": "std"}]}], "preamble": {"js": "", "css": ""}, "statement": "Ratios of Algebraic Expressions.
\nBy this we mean expressions of the form $\\displaystyle \\frac{p(x)}{q(x)}$ where $p(x)$ and $q(x)$ are algebraic expressions.
\nIf you want to input such an expression into the system you HAVE TO BE CAREFUL AND USE BRACKETS otherwise mistakes will occur.
\nOnce again, the box displaying your input in mathematical notation beside the input boxes in parts 2, 3 and 4 is very useful as it shows what the system thinks you have entered.
\nFor complicated expressions this is essential as you can check you have written what you really meant.
", "type": "question", "contributors": [{"name": "Hussam Muhamedsalih", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2515/"}]}]}], "contributors": [{"name": "Hussam Muhamedsalih", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2515/"}]}