// Numbas version: exam_results_page_options {"name": "1.4.1. Task: Cancelling common factors 6", "extensions": [], "custom_part_types": [{"source": {"pk": 1, "author": {"name": "Christian Lawson-Perfect", "pk": 7}, "edit_page": "/part_type/1/edit"}, "name": "Yes/no", "short_name": "yes-no", "description": "

The student is shown two radio choices: \"Yes\" and \"No\". One of them is correct.

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["Yes", "No"]}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [{"name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0"}, {"name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)"}], "settings": [{"name": "correct_answer_expr", "label": "Is the answer \"Yes\"?", "help_url": "", "hint": "An expression which evaluates to true or false.", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "1.4.1. Task: Cancelling common factors 6", "tags": [], "metadata": {"description": "

Simplify an algebraic fraction where the numerator is a factor of the quadratic on the denominator. Posed as a yes/no question, is this fraction equivalent to this simplified form? The answer is always yes. Part of HELM Book 1.4

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

Is $\\frac{\\var{q6f1}}{\\var{q6den}}$ equivalent to $\\frac{1}{\\var{q6f2}}$?

", "advice": "

To answer this question, first factorise the denominator of the first fraction.

\n

Then identify any factors common to both numerator and denominator and cancel this common fraction.

\n

\\[ \\frac{\\var{q6f1}}{\\var{q6den}}=\\frac{(\\var{q6f1})}{(\\var{q6f1}) (\\var{q6f2})}=\\frac{(\\require{enclose} \\enclose{horizontalstrike}{\\var{q6f1}})}{(\\require{enclose} \\enclose{horizontalstrike}{\\var{q6f1}})\\times (\\var{q6f2})}=\\frac{1}{\\var{q6f2}} \\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"alphabet": {"name": "alphabet", "group": "Ungrouped variables", "definition": "[\"a\",\"b\",\"c\",\"d\",\"f\",\"g\",\"h\",\"k\",\"m\",\"n\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"]", "description": "", "templateType": "anything", "can_override": false}, "q6v": {"name": "q6v", "group": "Q6", "definition": "random(alphabet)", "description": "", "templateType": "anything", "can_override": false}, "q6r1,q6r2": {"name": "q6r1,q6r2", "group": "Ungrouped variables", "definition": "repeat(random(-12..12 except 0),2)", "description": "

the roots

", "templateType": "anything", "can_override": false}, "q6den": {"name": "q6den", "group": "Q6", "definition": "simplify(expression(\n q6v+\"^2\"+\"+\"+(q6r1+q6r2)+\"*\"+q6v+\"+\"+(q6r1*q6r2)\n),\"all\") ", "description": "", "templateType": "anything", "can_override": false}, "q6f2": {"name": "q6f2", "group": "Q6", "definition": "simplify(expression(q6v+\"+\"+q6r2),\"all\")", "description": "", "templateType": "anything", "can_override": false}, "q6f1": {"name": "q6f1", "group": "Q6", "definition": "simplify(expression(q6v + \"+\" + q6r1),\"all\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["q6r1,q6r2", "alphabet"], "variable_groups": [{"name": "Q6", "variables": ["q6v", "q6den", "q6f1", "q6f2"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "yes-no", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\[ \\frac{\\var{q6f1}}{\\var{q6den}}=\\frac{(\\var{q6f1})}{(\\var{q6f1}) (\\var{q6f2})}=\\frac{(\\require{enclose} \\enclose{horizontalstrike}{\\var{q6f1}})}{(\\require{enclose} \\enclose{horizontalstrike}{\\var{q6f1}})\\times (\\var{q6f2})}=\\frac{1}{\\var{q6f2}} \\]

"}], "settings": {"correct_answer_expr": "true"}}], "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/"}]}