// Numbas version: exam_results_page_options {"name": "1.4.3.3 Adding two algebraic fractions version 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "1.4.3.3 Adding two algebraic fractions version 3", "tags": [], "metadata": {"description": "

Simplify (qx+a)/(rx+b) +/- (sx+c)/(rx+b)^2

\n

x is a randomised variable. a,b,c,d,q,r are randomised integers.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Express $\\displaystyle{\\var{te[0]}\\var{sgnl}\\var{te[1]}}$ as a single fraction.

", "advice": "

\\[\\begin{align*} \\var{te[0]}\\var{sgnl}\\var{te[1]} &= \\frac{\\var{ndnde[1]}}{\\var{ndnde[1]}}\\times\\var{te[0]}\\var{sgnl}\\var{te[1]}\\\\&=\\frac{(\\var{ndnde[1]})(\\var{ndnde[0]})\\var{sgnl}(\\var{ndnde[2]})}{\\var{ndnde[3]}}\\\\&=\\frac{(\\var{cnd[0]})\\var{sgnl}(\\var{ndnde[2]})}{\\var{ndnde[3]}}\\\\&=\\var{ans} \\end{align*}\\]

\n

There is no benefit in expanding the denominator. In fact, it is best to leave the denominator factorised, because then it is easier to see if the fraction can be simplified.

\n

The next step after this would be to try to factorise the numerator, and then see if the fraction can be simplified.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"te": {"name": "te", "group": "Ungrouped variables", "definition": "[simplify(expression(\"(\"+ndnd[0]+\")/(\"+ndnd[1]+\")\"),\"all\"),\n simplify(expression(\"(\"+ndnd[2]+\")/(\"+ndnd[3]+\")\"),\"all\")\n]", "description": "

The two terms, written as expressions

", "templateType": "anything", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "random(\"a\",\"b\",\"c\",\"d\",\"f\",\"g\",\"h\",\"k\",\"m\",\"n\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\")", "description": "

the variable to use

", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random([0,0,random(1,3,5),abs(rnd[0]),abs(rnd[0]),rnd[1]],\n [1,1,random(1,3,5),rnd[0],rnd[1],rnd[2] ])", "description": "

the constants: num1 xc, num2 xc, den xc, num1 c, num2 c, den c

\n

They are set up so that the numerators are either the same constant, or expressions x+k, which are different to the denominator expressions; and, the terms in each denominator are coprime.

", "templateType": "anything", "can_override": false}, "ndnd": {"name": "ndnd", "group": "Ungrouped variables", "definition": "[c[0]+\"*\"+v+\"+\"+c[3],\n c[2]+\"*\"+v+\"+\"+c[5],\n c[1]+\"*\"+v+\"+\"+c[4],\n \"(\"+c[2]+\"*\"+v+\"+\"+c[5]+\")^2\"\n ]", "description": "

numerator 1, denominator 1, numerator 2, denominator 2, as strings.

", "templateType": "anything", "can_override": false}, "sgn": {"name": "sgn", "group": "Ungrouped variables", "definition": "random(\"+\",\"-\")", "description": "", "templateType": "anything", "can_override": false}, "sgnl": {"name": "sgnl", "group": "Ungrouped variables", "definition": "latex(sgn)", "description": "

for display purposes

", "templateType": "anything", "can_override": false}, "ndnde": {"name": "ndnde", "group": "Ungrouped variables", "definition": "map(simplify(expression(x),\"all\"),x,ndnd)", "description": "

num1,den1,num2,den2 as expressions

", "templateType": "anything", "can_override": false}, "cnd": {"name": "cnd", "group": "Ungrouped variables", "definition": "[\n simplify(expression(\n \"(\"+ndnd[1]+\")*(\"+ndnd[0]+\")\"\n ),[\"expandBrackets\",\"all\"]),\n simplify(expression(\n string(simplify(expression(\n \"(\"+ndnd[1]+\")*(\"+ndnd[0]+\")\"\n ),[\"expandBrackets\",\"all\"]))+\"+\"+\n string(simplify(expression( \n sgn+\"(\"+ndnd[2]+\")\"\n ),[\"expandBrackets\",\"all\"]))\n ),[\"all\"]) \n ]", "description": "

The combined numerator terms for display in the advice

", "templateType": "anything", "can_override": false}, "ansnum": {"name": "ansnum", "group": "Ungrouped variables", "definition": "cnd[1]", "description": "", "templateType": "anything", "can_override": false}, "ansden": {"name": "ansden", "group": "Ungrouped variables", "definition": "ndnde[3]", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "expression(\"(\"+string(ansnum)+\")/(\"+string(ansden)+\")\")", "description": "", "templateType": "anything", "can_override": false}, "rnd": {"name": "rnd", "group": "Ungrouped variables", "definition": "shuffle(-5..5 except 0)", "description": "

 list of distinct random numbers between -5 and 5

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "76"}, "ungrouped_variables": ["v", "rnd", "c", "ndnd", "ndnde", "te", "sgn", "sgnl", "cnd", "ansnum", "ansden", "ans"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{ans}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "?`+/?`+", "partialCredit": 0, "message": "You need to give your answer as just one fraction", "nameToCompare": ""}, "valuegenerators": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}