// Numbas version: finer_feedback_settings {"name": "Lois's copy of Test1: Combining 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", "nb", "a1", "p", "a2", "s1"], "name": "Lois's copy of Test1: Combining algebraic fractions ", "tags": ["algebra", "algebraic fractions", "algebraic manipulation", "combining algebraic fractions", "common denominator"], "preamble": {"css": "", "js": ""}, "advice": "

A good choice for the denominator of the fraction we are looking for is  $\\simplify{(x+{p})({a1}x+{b})({a2}x+{d})}$ since the denominators of both original fractions contain the factor $ \\simplify{(x+{p})}$.

\n

Hence we have:
\\[\\begin{eqnarray*} \\simplify{{a} /((x+{p}) ({a1}x + {b})) + ({c} /( (x+{p})({a2}x + {d})))}  &=& \\simplify[std]{({a} * ({a2}*x + {d}) + {c} * ({a1}*x + {b})) / ((x+{p})({a1}*x + {b}) * ({a2}*x + {d})) }\\\\&=& \\simplify{({a*a2 + c*a1} * x + {a * d + c * b}) / ((x+{p})({a1}*x + {b}) * ({a2}*x + {d}))}\\end{eqnarray*}\\]

", "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"], "std1": ["std", "collectNumbers"]}, "parts": [{"prompt": "

Write \\[\\simplify{{a} /((x+{p}) ({a1}x + {b})) + ({c} /( (x+{p})({a2}x + {d})))}\\] as a single fraction.

\n

Input the fraction here: [[0]].

\n

Make sure that you simplify the numerator.

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "

Input as a single fraction and make sure that you simplify the numerator.

", "showStrings": false, "strings": [")-", ")+"], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 1e-05, "vsetrange": [10, 11], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "answersimplification": "std1", "scripts": {}, "answer": "({a*a2 + c*a1} * x + {a * d + c * b})/ ((x+{p})({a1}*x + {b}) * ({a2}*x + {d}))", "marks": 2, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

\n

 

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-9..9 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(-9..9 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(-9..9 except [0,round(b*a2/a1)])", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "nb": {"definition": "if(c<0,'taking away','adding')", "templateType": "anything", "group": "Ungrouped variables", "name": "nb", "description": ""}, "a1": {"definition": "random(1..8)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "p": {"definition": "random(-9..9 except [round(b/a1),round(d/a2)])", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "a2": {"definition": "random(1..8)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "s1": {"definition": "if(c<0,-1,1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1", "description": ""}}, "metadata": {"notes": "

5/08/2012:

\n

Added tags.

\n

Added description.

\n

Changed to two questions, for the numerator and denomimator, rather than one as difficult to trap student input for this example. Still some ambiguity however.

\n

12/08/2012:

\n

Back to one input of a fraction and trapped input in Forbidden Strings.

\n

Used the except feature of ranges to get non-degenerate examples.

\n

Checked calculation.OK.

\n

Improved display in content areas.

\n

04/02/2013:

\n

Added statements about simplifying the numerator.

", "description": "

Express $\\displaystyle \\frac{a}{(x+r)(px + b)} + \\frac{c}{(x+r)(qx + d)}$ as an algebraic single fraction over a common denominator. The question asks for a solution which has denominator $(x+r)(px+b)(qx+d)$.

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