// Numbas version: exam_results_page_options {"name": "Input 5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Input 5", "tags": ["Numbas", "algebraic input", "brackets", "input", "introduction", "mathematical expressions", "numbas", "ratios"], "advice": "

a)

\n

The correct input is ({a}+{b}x)/({c}+{d}y) - the rest are incorrect and you should have chosen those.

\n

b)

\n

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

\n

c)

\n

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)

\n

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

\n ", "rulesets": {"std": ["all", "!collectNumbers"]}, "parts": [{"prompt": "

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

After you have clicked Submit part, click on Show Feedback and you will be given more detail on your choices.

\n

You can click on Reveal answers at the bottom of the screen to see solutions, but it's best to work through these questions yourself. Remember you can always redo the question by clicking on the Try another question like this one button at the bottom of the screen.

", "gaps": [{"maxanswers": 0.0, "distractors": ["({a}+{b}x)/({c}+{d}y)
This is the correct input, so your choice is wrong!", "{a}+{b}x/({c}+{d}y)
Good choice: the system thinks this is $\\simplify[std]{ {a}+{b}x/({c}+{d}y)}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$.", "{a}+{b}x/{c}+{d}y
Good choice: the system thinks this is $\\simplify[std]{ {a}+{b}x/{c}+{d}y}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$.", "({a}+{b}x)/{c}+{d}y
Good choice: the system thinks this is $\\simplify[std]{ ({a}+{b}x)/{c}+{d}y}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$."], "matrix": [-3.0, 1.0, 1.0, 1.0], "minanswers": 0.0, "shufflechoices": true, "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

"], "displaytype": "checkbox", "maxmarks": 0.0, "marks": 0.0, "displaycolumns": 1.0, "type": "m_n_2", "minmarks": 0.0}], "type": "gapfill", "marks": 0.0}, {"prompt": "

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

", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "({b}+{a}y)/({d}+{c}z)", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "

Input the expression $\\displaystyle \\frac {\\var{d} z + \\var{b}} {(x + \\var{a}) (y + \\var{c})}$. [[0]]

", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "({d} * z + {b}) / ((x + {a}) * (y + {c}))", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "

Input the expression $\\displaystyle \\simplify[std]{({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 * b}) * (y -{3* d}))}$. [[0]]

", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.0001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "std", "marks": 1.0, "answer": "({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 b}) * (y -{3* d}))", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "

This question concerns 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 or mistakes will occur.

\n

Once again, the box displaying your input in mathematical notation beside the input boxes in parts a, b and c is very useful as it shows what the system thinks you have entered.

", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {"a": {"definition": "random(2..16#2)", "name": "a"}, "c": {"definition": "random(2..9)", "name": "c"}, "b": {"definition": "random(3..15#2)", "name": "b"}, "d": {"definition": "random(2..9 except [round(b*c/a),c])", "name": "d"}}, "metadata": {"notes": "", "description": "

Instructions on inputting ratios of algebraic expressions.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}