// 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": [{"ungrouped_variables": ["base1", "arg1", "base2", "num", "den"], "functions": {}, "tags": ["change of base", "log laws", "logarithms", "logs", "rules"], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "extensions": [], "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"type": "gapfill", "marks": 0, "gaps": [{"type": "jme", "checkingAccuracy": 0.001, "marks": 1, "vsetRangePoints": 5, "answer": "(ln{arg1})/(ln{base1})", "unitTests": [], "showFeedbackIcon": true, "expectedVariableNames": [], "customMarkingAlgorithm": "", "checkVariableNames": false, "showCorrectAnswer": true, "scripts": {}, "failureRate": 1, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "checkingType": "absdiff", "vsetRange": ["0.1", "0.9"], "showPreview": true, "extendBaseMarkingAlgorithm": true}], "steps": [{"unitTests": [], "type": "information", "marks": 0, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "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, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}], "unitTests": [], "showFeedbackIcon": true, "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.

", "customMarkingAlgorithm": "", "showCorrectAnswer": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "stepsPenalty": "1", "sortAnswers": false, "extendBaseMarkingAlgorithm": true}, {"marks": 0, "showCellAnswerState": true, "steps": [{"unitTests": [], "type": "information", "marks": 0, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "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, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}], "unitTests": [], "showFeedbackIcon": true, "prompt": "

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

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "scripts": {}, "variableReplacements": [], "stepsPenalty": "1", "displayColumns": 0, "extendBaseMarkingAlgorithm": true, "matrix": ["1", 0, 0, 0, 0], "type": "1_n_2", "displayType": "radiogroup", "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})$

"], "customMarkingAlgorithm": "", "distractors": ["", "", "", "", ""], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst"}], "name": "Logs: change of base", "advice": "", "rulesets": {}, "statement": "", "variable_groups": [], "variables": {"arg1": {"description": "", "templateType": "anything", "name": "arg1", "definition": "random(2..99)", "group": "Ungrouped variables"}, "base1": {"description": "", "templateType": "anything", "name": "base1", "definition": "random(2..10)", "group": "Ungrouped variables"}, "base2": {"description": "", "templateType": "anything", "name": "base2", "definition": "random(2..10 except base1)", "group": "Ungrouped variables"}, "den": {"description": "", "templateType": "anything", "name": "den", "definition": "random([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47] except num)", "group": "Ungrouped variables"}, "num": {"description": "", "templateType": "anything", "name": "num", "definition": "random(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47)", "group": "Ungrouped variables"}}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}