// Numbas version: exam_results_page_options {"name": "Ida's copy of sp\u00f8rsm\u00e5l 4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": [], "rulesets": {}, "parts": [{"marks": 0, "scripts": {}, "gaps": [{"checkVariableNames": true, "expectedVariableNames": ["w"], "checkingAccuracy": 0.001, "marks": "1", "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"}}, "failureRate": 1, "unitTests": [], "vsetRangePoints": 5, "customMarkingAlgorithm": "", "variableReplacements": [], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "showPreview": true, "type": "jme", "answer": "1/({g}w)", "showCorrectAnswer": true, "checkingType": "absdiff", "extendBaseMarkingAlgorithm": true}], "unitTests": [], "stepsPenalty": "0", "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "

\n

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

\n

\n

", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "gapfill", "steps": [{"variableReplacementStrategy": "originalfirst", "marks": 0, "variableReplacements": [], "type": "information", "unitTests": [], "prompt": "

\n

Her er noen eksempler: 

\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}\\]

", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "extendBaseMarkingAlgorithm": true}], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "sortAnswers": false}], "name": "Ida's copy of sp\u00f8rsm\u00e5l 4", "extensions": [], "metadata": {"description": "

Add, subtract, multiply and divide algebraic fractions.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "", "variables": {"h": {"templateType": "anything", "definition": "primes[6]", "name": "h", "group": "numerical fractions", "description": ""}, "j": {"templateType": "anything", "definition": "random(primes except [d,g,h])", "name": "j", "group": "numerical fractions", "description": ""}, "a": {"templateType": "anything", "definition": "primes[0]", "name": "a", "group": "numerical fractions", "description": ""}, "b": {"templateType": "anything", "definition": "primes[1]", "name": "b", "group": "numerical fractions", "description": ""}, "c": {"templateType": "anything", "definition": "primes[2]", "name": "c", "group": "numerical fractions", "description": ""}, "d": {"templateType": "anything", "definition": "primes[3]", "name": "d", "group": "numerical fractions", "description": ""}, "f": {"templateType": "anything", "definition": "primes[4]", "name": "f", "group": "numerical fractions", "description": ""}, "primes": {"templateType": "anything", "definition": "shuffle([2,3,5,7,11,13,17])", "name": "primes", "group": "numerical fractions", "description": ""}, "g": {"templateType": "anything", "definition": "primes[5]", "name": "g", "group": "numerical fractions", "description": ""}}, "preamble": {"css": "", "js": ""}, "variable_groups": [{"variables": ["a", "b", "c", "d", "f", "g", "h", "j", "primes"], "name": "numerical fractions"}], "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

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