// Numbas version: exam_results_page_options {"name": "Ida's copy of Algebraic fractions: operations involving algebraic fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [{"variables": ["a", "b", "c", "d", "f", "g", "h", "j", "primes"], "name": "numerical fractions"}], "rulesets": {}, "advice": "

Learn from your mistakes and have another attempt by clicking on 'Try another question like this one' until you get full marks.

", "preamble": {"js": "", "css": ""}, "variables": {"h": {"description": "", "name": "h", "definition": "primes[6]", "group": "numerical fractions", "templateType": "anything"}, "c": {"description": "", "name": "c", "definition": "primes[2]", "group": "numerical fractions", "templateType": "anything"}, "f": {"description": "", "name": "f", "definition": "primes[4]", "group": "numerical fractions", "templateType": "anything"}, "g": {"description": "", "name": "g", "definition": "primes[5]", "group": "numerical fractions", "templateType": "anything"}, "b": {"description": "", "name": "b", "definition": "primes[1]", "group": "numerical fractions", "templateType": "anything"}, "primes": {"description": "", "name": "primes", "definition": "shuffle([2,3,5,7,11,13,17])", "group": "numerical fractions", "templateType": "anything"}, "j": {"description": "", "name": "j", "definition": "random(primes except [d,g,h])", "group": "numerical fractions", "templateType": "anything"}, "d": {"description": "", "name": "d", "definition": "primes[3]", "group": "numerical fractions", "templateType": "anything"}, "a": {"description": "", "name": "a", "definition": "primes[0]", "group": "numerical fractions", "templateType": "anything"}}, "extensions": [], "ungrouped_variables": [], "parts": [{"stepsPenalty": "2", "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "steps": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "type": "information", "scripts": {}, "marks": 0, "prompt": "

The fraction bar means division.

\n

\n
\n

\n

The fraction $\\frac{2}{3}$ means 2 divided by 3. So these questions are just division questions! It is important to note which fraction bar is big and which are small, so you know the order of the divisions.  

\n

\n
\n

\n

Here are some examples:

\n

\\[\\frac{7}{\\frac{5}{6}}=7\\div\\frac{5}{6} =7\\times\\frac{6}{5}=\\frac{42}{5}\\]

\n

\\[\\frac{\\frac{7}{5}}{6}=\\frac{7}{5}\\div 6=\\frac{7}{5}\\times \\frac{1}{6}=\\frac{7}{30}\\]

\n

\\[\\frac{\\frac{9}{11}}{\\frac{5}{3}}=\\frac{9}{11}\\div\\frac{5}{3}=\\frac{9}{11}\\times \\frac{3}{5}=\\frac{27}{55}\\]

"}], "variableReplacementStrategy": "originalfirst", "type": "gapfill", "gaps": [{"vsetrange": [0, 1], "showCorrectAnswer": true, "scripts": {"mark": {"script": "// Parse the student's answer as a syntax tree\nvar studentTree = Numbas.jme.compile(this.studentAnswer,Numbas.jme.builtinScope);\n\n// Create the pattern to match against \n// We just want to check that the student has written \"something to the power of something\"\nvar rule = Numbas.jme.compile('?? / ??');\n\n// Check the student's answer matches the pattern. \nvar m = Numbas.jme.display.matchTree(rule,studentTree,true);\n\n// If not, take away marks\nif(!m) {\n this.multCredit(0,'Your answer is not in the form $m/n$.');\n}", "order": "after"}}, "variableReplacements": [], "vsetrangepoints": 5, "showpreview": true, "answersimplification": "simplifyFractions", "checkingtype": "absdiff", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "checkvariablenames": true, "answer": "1/({g}w)", "type": "jme", "expectedvariablenames": ["w"], "marks": "1", "checkingaccuracy": 0.001}], "scripts": {}, "marks": 0, "prompt": "

\n

$\\displaystyle \\frac{\\frac{w+\\var{f}}{\\var{g}w}}{w+\\var{f}}=$ [[0]]

\n

\n

"}], "name": "Ida's copy of Algebraic fractions: operations involving algebraic fractions", "tags": [], "statement": "

Regn ut og forkort om mulig.

\n

Bruk / for å skrive divisjon, f.eks skriver du (2a-1)/(x+3) for å få $\\frac{2a-1}{x+3}$. 

\n

", "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"description": "

Add, subtract, multiply and divide algebraic fractions.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "functions": {}, "type": "question", "contributors": [{"name": "Ida Landg\u00e4rds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2336/"}]}]}], "contributors": [{"name": "Ida Landg\u00e4rds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2336/"}]}