// Numbas version: exam_results_page_options {"name": "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": {}, "tags": ["algebraic input", "brackets", "checked2015", "input", "introduction", "mathematical expressions", "numbas", "Numbas", "ratios", "Ratios"], "extensions": [], "name": "Hussam's copy of How to enter algebraic fractions - Getting Started", "variable_groups": [], "rulesets": {"std": ["all", "!collectNumbers"]}, "ungrouped_variables": ["a", "c", "b", "d"], "variables": {"d": {"definition": "random(2..9 except [round(b*c/a),c])", "templateType": "anything", "name": "d", "description": "", "group": "Ungrouped variables"}, "a": {"definition": "random(2..16#2)", "templateType": "anything", "name": "a", "description": "", "group": "Ungrouped variables"}, "c": {"definition": "random(2..9)", "templateType": "anything", "name": "c", "description": "", "group": "Ungrouped variables"}, "b": {"definition": "random(3..15#2)", "templateType": "anything", "name": "b", "description": "", "group": "Ungrouped variables"}}, "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.

\n

b) A correct input is ({b} + {a}y) / ({c} + {d}z). Also correct is ({a}y+{b}) / ({c} + {d}z) etc.

\n

c) A correct input is ({d}z + {b}) / ((x + {a})*(y + {c})).

\n

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})$

\n

d) A correct input is ({a} -({b}x + {c})*e ^ ( -{2}x)) / ((x + {2*b})*(y -{3*d}))

", "parts": [{"scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "prompt": "

Examples

\n

Suppose we wanted to input the expression  $\\displaystyle \\frac{\\var{a}+\\var{b}x}{\\var{c}+\\var{d}y}$ into the system.

\n

Which of the following input expressions are incorrect?

\n

[[0]]

\n

Choose the incorrect input(s): (You lose 3 marks if you choose the wrong one!)

\n

If you click on Submit part, then on Show feedback, you will be given more detail on your choices.

\n

You 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, "type": "gapfill", "gaps": [{"scripts": {}, "displayColumns": 1, "maxMarks": 0, "maxAnswers": 0, "warningType": "none", "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

"], "marks": 0, "distractors": ["This is the correct input, so your choice is wrong!", "Good choice as the system thinks this is $\\simplify[std]{ {a}+{b}x/({c}+{d}y)}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$", "Good choice as the system thinks this is $\\simplify[std]{ {a}+{b}x/{c}+{d}y}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$", "Good choice as the system thinks this is $\\simplify[std]{ ({a}+{b}x)/{c}+{d}y}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$"], "shuffleChoices": true, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "matrix": [-3, 1, 1, 1], "type": "m_n_2", "displayType": "checkbox", "minAnswers": 0, "minMarks": 0}]}, {"scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "prompt": "

Input the expression $\\displaystyle \\frac{\\var{b}+\\var{a}y}{\\var{d}+\\var{c}z}$ here: [[0]]

", "marks": 0, "type": "gapfill", "gaps": [{"scripts": {}, "expectedvariablenames": [], "vsetrangepoints": 5, "answer": "({b}+{a}y)/({d}+{c}z)", "checkvariablenames": false, "type": "jme", "checkingtype": "absdiff", "marks": 1, "variableReplacements": [], "showpreview": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "answersimplification": "std", "vsetrange": [0, 1], "checkingaccuracy": 0.001}]}, {"scripts": {}, "variableReplacements": [], "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, "type": "gapfill", "gaps": [{"scripts": {}, "expectedvariablenames": [], "vsetrangepoints": 5, "answer": "({d} * z + {b}) / ((x + {a}) * (y + {c}))", "checkvariablenames": false, "type": "jme", "checkingtype": "absdiff", "marks": 1, "variableReplacements": [], "showpreview": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "answersimplification": "std", "vsetrange": [0, 1], "checkingaccuracy": 0.001}]}, {"scripts": {}, "variableReplacements": [], "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, "type": "gapfill", "gaps": [{"scripts": {}, "expectedvariablenames": [], "vsetrangepoints": 5, "answer": "({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 b}) * (y -{3* d}))", "checkvariablenames": false, "type": "jme", "checkingtype": "absdiff", "marks": 1, "variableReplacements": [], "showpreview": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "answersimplification": "std", "vsetrange": [0, 1], "checkingaccuracy": 0.0001}]}], "preamble": {"js": "", "css": ""}, "statement": "

Ratios of Algebraic Expressions.

\n

By this we mean expressions of the form $\\displaystyle \\frac{p(x)}{q(x)}$ where $p(x)$ and $q(x)$ are algebraic expressions.

\n

If you want to input such an expression into the system you HAVE TO BE CAREFUL AND USE BRACKETS otherwise mistakes will occur.

\n

Once 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. 

\n

For 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/"}]}