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

There are two parts: 

\n

(3x)/4-x/5+x/3 and (3x/4)-(x/5+x/3).

\n

The numbers are randomised to small, coprime, positive integers.

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

Express as a single fraction:

", "advice": "

a)

\n

\\[\\begin{align*} \\frac{\\var{n1}x}{\\var{c[0]}}-\\frac{x}{\\var{c[1]}}+\\frac{x}{\\var{c[2]}}&=\\frac{\\var{n1}x\\times\\var{c[1]}\\times\\var{c[2]}-x\\times\\var{c[0]}\\times\\var{c[2]}+x\\times\\var{c[0]}\\times\\var{c[1]}}{\\var{c[0]}\\times\\var{c[1]}\\times\\var{c[2]}}\\\\&=\\frac{\\var{n1*c[1]*c[2]}x-\\var{c[0]*c[2]}x + \\var{c[0]*c[1]}x}{\\var{c[0]*c[1]*c[2]}}\\\\&= \\var{anse[0]} \\end{align*}\\]

\n

b)

\n

\\[\\begin{align*} \\frac{\\var{n1}x}{\\var{c[0]}}-\\left(\\frac{x}{\\var{c[1]}}+\\frac{x}{\\var{c[2]}}\\right)&=\\frac{\\var{n1}x\\times\\var{c[1]}\\times\\var{c[2]}-\\left(x\\times\\var{c[0]}\\times\\var{c[2]}+x\\times\\var{c[0]}\\times\\var{c[1]}\\right)}{\\var{c[0]}\\times\\var{c[1]}\\times\\var{c[2]}}\\\\&=\\frac{\\var{n1*c[1]*c[2]}x-\\var{c[0]*c[2]}x - \\var{c[0]*c[1]}x}{\\var{c[0]*c[1]*c[2]}}\\\\&= \\var{anse[1]} \\end{align*}\\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "shuffle([2,3,5,7])", "description": "", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Ungrouped variables", "definition": "random(c[1],c[2],c[3])", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "[rational(n1/c[0]-1/c[1]+1/c[2]),rational(n1/c[0]-(1/c[1]+1/c[2]))]", "description": "", "templateType": "anything", "can_override": false}, "anse": {"name": "anse", "group": "Ungrouped variables", "definition": "[\n simplify(expression(string(ans[0])+\"*x\"),\"basic\"),\n simplify(expression(string(ans[1])+\"*x\"),\"basic\")\n]", "description": "

the answers as an expression

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["c", "n1", "ans", "anse"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": true, "customName": "a)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[\\frac{\\var{n1}x}{\\var{c[0]}}-\\frac{x}{\\var{c[1]}}+\\frac{x}{\\var{c[2]}}\\]

", "answer": "{anse[0]}", "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 express your answer as a single fraction.", "nameToCompare": ""}, "valuegenerators": []}, {"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, "prompt": "

\\[\\frac{\\var{n1}x}{\\var{c[0]}}-\\left(\\frac{x}{\\var{c[1]}}+\\frac{x}{\\var{c[2]}}\\right)\\]

", "answer": "{anse[1]}", "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 express your answer as a single 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/"}]}