// 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": [{"functions": {}, "ungrouped_variables": ["base1", "arg1", "base2", "num", "den"], "name": "Logs: change of base", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "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]].

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"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.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": ["0.1", "0.9"], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "(ln{arg1})/(ln{base1})", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"stepsPenalty": "1", "displayColumns": 0, "prompt": "

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

", "matrix": ["1", 0, 0, 0, 0], "shuffleChoices": true, "maxMarks": 0, "variableReplacements": [], "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})$

"], "variableReplacementStrategy": "originalfirst", "steps": [{"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.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "distractors": ["", "", "", "", ""], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "1_n_2", "displayType": "radiogroup", "minMarks": 0}], "extensions": [], "statement": "

Note to, natural logarithms are entered as \"ln(x)\" $\\ln(x)$ and log to the base 10 as \"log(x)\" $\\log(x)$. For other bases you can use the form \"log(a,b)\" to give $\\log_b(a)$

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"base1": {"definition": "random(2..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "base1", "description": ""}, "base2": {"definition": "random(2..10 except base1)", "templateType": "anything", "group": "Ungrouped variables", "name": "base2", "description": ""}, "num": {"definition": "random(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47)", "templateType": "anything", "group": "Ungrouped variables", "name": "num", "description": ""}, "den": {"definition": "random([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47] except num)", "templateType": "anything", "group": "Ungrouped variables", "name": "den", "description": ""}, "arg1": {"definition": "random(2..99)", "templateType": "anything", "group": "Ungrouped variables", "name": "arg1", "description": ""}}, "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1232/"}]}]}], "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1232/"}]}