// Numbas version: finer_feedback_settings {"name": "Dividing by a fraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["denom1", "num1", "denom2", "num2", "num3", "denom3", "num1simp", "denom1simp", "num2simp", "denom2simp", "prompts", "prompt"], "name": "Dividing by a fraction", "tags": [], "preamble": {"css": ".fractiontable table {\n width: 10%; \n padding: 0px; \n border-width: 0px; \n layout: fixed;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n width: 15%; \n border-bottom: 1px solid black; \n text-align: center;\n}\n\n.fractiontable .tdeq \n{\n width: 5%; \n border-bottom: 0px;\n font-size: x-large;\n}\n\n\n.fractiontable th {\n background-color:#aaa;\n}\n/*Fix the height of all cells EXCEPT table-headers to 40px*/\n.fractiontable td {\n height:40px;\n}\n", "js": ""}, "advice": "

See steps.

", "rulesets": {"std": ["all"]}, "parts": [{"stepsPenalty": 0, "prompt": "

We want to find:

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{num1simp}÷{num2simp}
{denom1simp}{denom2simp}
\n
\n

To divide by a fraction, turn it upsidedown and then multiply by the result.

\n

$\\var{prompt} $

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
{num1simp}÷{num2simp}={num1simp}×[[0]]=[[1]]
{denom1simp}{denom2simp}{denom1simp}[[2]][[3]]
\n
\n
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "denom2simp", "minValue": "denom2simp", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "(num1simp*denom2simp)/gcd(num1simp*denom2simp,num2simp*denom1simp)", "minValue": "(num1simp*denom2simp)/gcd(num1simp*denom2simp,num2simp*denom1simp)", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "num2simp", "minValue": "num2simp", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "(num2simp*denom1simp)/gcd(num1simp*denom2simp,num2simp*denom1simp)", "minValue": "(num2simp*denom1simp)/gcd(num1simp*denom2simp,num2simp*denom1simp)", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Turn the second fraction upsidedown, then multiply by the result.

\n

So you'll have to do $\\frac {\\var{num1simp }} {\\var{denom1simp}} × \\frac {\\var{denom2simp }} {\\var{num2simp}} $

\n

The top (or numerator) of the product = {num1simp} × {denom2simp} = ?

\n

The bottom (or denominator) of the product = {denom1simp} × {num2simp} = ?

\n

Remember to cancel the result if you can.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}], "extensions": [], "statement": "

 How to divide by a fraction.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "(num1simp*denom2simp)/(num2simp*denom1simp)<1"}, "variables": {"denom1": {"definition": "random(2..5)\n", "templateType": "anything", "group": "Ungrouped variables", "name": "denom1", "description": ""}, "denom3": {"definition": "(denom1simp*denom2simp)/gcd(num1simp*num2simp, denom1simp*denom2simp)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom3", "description": ""}, "denom2": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom2", "description": ""}, "prompt": {"definition": "switch(gcd(num1simp*denom2simp,denom1simp*num2simp)>1, prompts[0],prompts[1])", "templateType": "anything", "group": "Ungrouped variables", "name": "prompt", "description": ""}, "num1": {"definition": "denom1-random(1..denom1-1) //make sure the numerator's bigger than denom\n", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "denom2-random(1..denom2-1) //make sure the numerator's bigger than denom", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}, "num3": {"definition": "(num1simp*num2simp)/gcd(num1simp*num2simp, denom1simp*denom2simp)", "templateType": "anything", "group": "Ungrouped variables", "name": "num3", "description": ""}, "num1simp": {"definition": "num1/gcd(num1, denom1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num1simp", "description": ""}, "prompts": {"definition": "[ \"Make sure you show the result in its simplest form: you\\'ll have to cancel ...\", \" \" ]", "templateType": "list of strings", "group": "Ungrouped variables", "name": "prompts", "description": ""}, "denom1simp": {"definition": "denom1/gcd(num1,denom1)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom1simp", "description": ""}, "denom2simp": {"definition": "denom2/gcd(num2,denom2)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom2simp", "description": ""}, "num2simp": {"definition": "num2/gcd(num2, denom2)", "templateType": "anything", "group": "Ungrouped variables", "name": "num2simp", "description": ""}}, "metadata": {"description": "

Pratice of dividing by a fraction.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Rob Cade", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/70/"}]}]}], "contributors": [{"name": "Rob Cade", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/70/"}]}