// Numbas version: exam_results_page_options {"name": "Leonardo's copy of Simplify logarithms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

Answer the following question on logarithms.

", "extensions": [], "variables": {"a1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "s1*random(2..9)", "name": "a1"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(2..15)", "name": "b1"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1..9)", "name": "c"}, "s1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1,-1)", "name": "s1"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "s4*random(2..9)", "name": "d"}, "f": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "precround((a2-1)/b2,0)", "name": "f"}, "s4": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(1,-1)", "name": "s4"}, "a2": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "1+b2*random(2..5)", "name": "a2"}, "b2": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "definition": "random(2..9)", "name": "b2"}}, "functions": {}, "variable_groups": [], "parts": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "unitTests": [], "gaps": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "maxValue": "{a1}", "correctAnswerFraction": false, "marks": 0.5, "mustBeReduced": false, "allowFractions": false, "mustBeReducedPC": 0, "showCorrectAnswer": true, "customName": "", "useCustomName": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showFractionHint": true, "customMarkingAlgorithm": "", "minValue": "{a1}", "variableReplacements": [], "type": "numberentry"}, {"variableReplacementStrategy": "originalfirst", "scripts": {}, "unitTests": [], "notationStyles": ["plain", "en", "si-en"], "maxValue": "{b1}", "correctAnswerFraction": false, "marks": 0.5, "mustBeReduced": false, "allowFractions": false, "mustBeReducedPC": 0, "showCorrectAnswer": true, "customName": "", "useCustomName": false, "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "showFractionHint": true, "customMarkingAlgorithm": "", "minValue": "{b1}", "variableReplacements": [], "type": "numberentry"}], "marks": 0, "prompt": "\n

Express the following in terms of $\\log_a(x)$ and $\\log_a(y)$

\n

\\[\\log_a(x^{\\var{a1}}y^{\\var{b1}})=\\alpha\\log_a(x)+\\beta\\log_a(y)\\]

\n

$\\alpha=\\;\\;$[[0]], $\\beta=\\;\\;$[[1]]

\n ", "showCorrectAnswer": true, "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "sortAnswers": false, "customMarkingAlgorithm": "", "variableReplacements": [], "type": "gapfill"}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "\n \t\t

Express $\\log_a(x^{c}y^{d})$ in terms of $\\log_a(x)$ and $\\log_a(y)$. 

\n \t\t

 

\n \t\t"}, "preamble": {"css": "", "js": ""}, "advice": "

The rules for combining logs are

\n

\\[\\begin{eqnarray*} \\log_a(bc)&=&\\log_a(b)+\\log_a(c)\\\\ \\\\ \\log_a\\left(\\frac{b}{c}\\right)&=&\\log_a(b)-\\log_a(c)\\\\ \\\\ \\log_a(b^r)&=&r\\log_a(b) \\end{eqnarray*} \\]

\n


Using these rules gives:
\\[ \\begin{eqnarray*} \\log_a(x^{\\var{a1}}y^{\\var{b1}})&=&\\log_a(x^{\\var{a1}})+\\log_a(y^{\\var{b1}})\\\\ &=&\\var{a1}\\log_a(x)+\\var{b1}\\log_a(y) \\end{eqnarray*} \\]

", "name": "Leonardo's copy of Simplify logarithms", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["c", "d", "f", "s1", "s4", "a1", "a2", "b1", "b2"], "tags": [], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Leonardo Juliano", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3600/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Leonardo Juliano", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3600/"}]}