// Numbas version: exam_results_page_options {"name": "1.4.3.5 Express as a single fraction version 5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "1.4.3.5 Express as a single fraction version 5", "tags": [], "metadata": {"description": "

Given 2 or 3 fractions such as A/(2x+5), add them.

\n

There are 5 possible versions.

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

Express $\\displaystyle{\\var{expr}}$ as a single fraction.

", "advice": "

\\[\\var{expr}=\\var{ans}\\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"expr": {"name": "expr", "group": "Ungrouped variables", "definition": "[\n expression(\"A/(2x+\"+c[0]+\")+B/(x+\"+c[1]+\")\"),\n expression(\"A/(2x+\"+c[0]+\")+B/((x-\"+c[1]+\"))+C/(x-\"+c[1]+\")^2\"),\n expression(\"A/(x+\"+c[0]+\")+B/(x+\"+c[0]+\")^2\"),\n expression(\"(A*x+B)/(x^2+x+\"+c[0]+\")+C/(x-\"+c[1]+\")\"),\n expression(\"A*x+B+C/(x+\"+c[0]+\")\")\n][idx]", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "[\n expression(\"(A*(x+\"+c[1]+\")+B*(2*x+\"+c[0]+\"))/((2*x+\"+c[0]+\")*(x+\"+c[1]+\"))\"),\n expression(\"(A*(x-\"+c[1]+\")^2+B*(x-\"+c[1]+\")*(2*x+\"+c[0]+\")+C*(2*x+\"+c[0]+\"))/((2x+\"+c[0]+\")*(x-\"+c[1]+\")^2)\"),\n expression(\"(A*(x+\"+c[0]+\")+B)/(x+\"+c[0]+\")^2\"),\n expression(\"((A*x+B)*(x-\"+c[1]+\")+C*(x^2+x+\"+c[0]+\"))/((x^2+x+\"+c[0]+\")*(x-\"+c[1]+\"))\"),\n expression(\"((A*x+B)*(x+\"+c[0]+\")+C)/(x+\"+c[0]+\")\")\n][idx] ", "description": "

working out.

", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "repeat(random(1..9),2)", "description": "

constants

", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..4)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["c", "expr", "ans", "idx"], "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": true, "singleLetterVariables": true, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "?`+/?`+", "partialCredit": 0, "message": "You need to express the 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/"}]}