// Numbas version: exam_results_page_options {"name": "Logs: change of base", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "statement": "", "variable_groups": [], "ungrouped_variables": ["base1", "arg1", "base2", "num", "den"], "variables": {"num": {"group": "Ungrouped variables", "description": "", "definition": "random(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47)", "name": "num", "templateType": "anything"}, "base2": {"group": "Ungrouped variables", "description": "", "definition": "random(2..10 except base1)", "name": "base2", "templateType": "anything"}, "den": {"group": "Ungrouped variables", "description": "", "definition": "random([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47] except num)", "name": "den", "templateType": "anything"}, "base1": {"group": "Ungrouped variables", "description": "", "definition": "random(2..10)", "name": "base1", "templateType": "anything"}, "arg1": {"group": "Ungrouped variables", "description": "", "definition": "random(2..99)", "name": "arg1", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"css": "", "js": ""}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "parts": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "marks": 0, "customMarkingAlgorithm": "", "stepsPenalty": "1", "customName": "", "prompt": "

$\\ln(x)$ is the natural logarithm of $x$, or the log of $x$ base $e$. This is equivalent to $\\log_e(x)$ but $\\ln(x)$ is normally preferred, in fact, for this question it is required.

\n

  
$\\log_{\\var{base1}}(\\var{arg1})$ can be written in terms of natural logarithms as [[0]].

\n

Note: The natural log is denoted by ln, that is, an L (in lower case) followed by an n, the first letter is not a capital i. To enter your answer ensure you use the correct letters and use brackets.

", "steps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "marks": 0, "customMarkingAlgorithm": "", "customName": "", "prompt": "

In this question we are using the change of base rule:

\n

\\[\\log_b(a)=\\frac{\\log_c(a)}{\\log_c(b)}\\]

\n

Notice, $c$ can be any base. Also, notice the big $a$ goes at the top of the fraction, and the little $b$ goes down the bottom.

", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "type": "information", "useCustomName": false, "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}}], "showCorrectAnswer": true, "sortAnswers": false, "gaps": [{"failureRate": 1, "variableReplacementStrategy": "originalfirst", "unitTests": [], "marks": 1, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "customName": "", "answer": "(ln{arg1})/(ln{base1})", "showCorrectAnswer": true, "checkingAccuracy": 0.001, "checkVariableNames": false, "checkingType": "absdiff", "extendBaseMarkingAlgorithm": true, "type": "jme", "vsetRange": ["0.1", "0.9"], "useCustomName": false, "showFeedbackIcon": true, "showPreview": true, "valuegenerators": [], "variableReplacements": [], "scripts": {}}], "extendBaseMarkingAlgorithm": true, "type": "gapfill", "useCustomName": false, "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}}, {"variableReplacementStrategy": "originalfirst", "distractors": ["", "", "", "", ""], "stepsPenalty": "1", "choices": ["

$\\log_{\\var{den}}(\\var{num})$

", "

$\\log_{\\var{num}}(\\var{den})$

", "

$\\log_{\\var{base2}}(\\var{num-den})$

", "

$\\log_{\\var{base2}}\\left(\\frac{\\var{num}}{\\var{den}}\\right)$

", "

$\\log_{\\var{den}}(\\var{base2})$

"], "prompt": "

The expression $\\displaystyle\\frac{\\log_\\var{base2}(\\var{num})}{\\log_\\var{base2}(\\var{den})}$ can be written as

", "displayColumns": 0, "matrix": ["1", 0, 0, 0, 0], "type": "1_n_2", "useCustomName": false, "customMarkingAlgorithm": "", "variableReplacements": [], "scripts": {}, "steps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "marks": 0, "customMarkingAlgorithm": "", "customName": "", "prompt": "

In this question we are using the change of base rule:

\n

\\[\\log_b(a)=\\frac{\\log_c(a)}{\\log_c(b)}\\]

\n

Notice, $c$ can be any base. Also, notice the big $a$ goes at the top of the fraction, and the little $b$ goes down the bottom.

", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "type": "information", "useCustomName": false, "showFeedbackIcon": true, "variableReplacements": [], "scripts": {}}], "maxMarks": 0, "marks": 0, "unitTests": [], "shuffleChoices": true, "customName": "", "showCorrectAnswer": true, "displayType": "radiogroup", "extendBaseMarkingAlgorithm": true, "showCellAnswerState": true, "showFeedbackIcon": true, "minMarks": 0}], "advice": "", "functions": {}, "rulesets": {}, "extensions": [], "name": "Logs: change of base", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}