// Numbas version: finer_feedback_settings {"name": "Significant figures: logarithms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Significant figures: logarithms", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Calculate log({x_str}), giving your answer to the appropriate number of decimal places.

", "advice": "

Write {x_str} in scientific notation: {x_str} = {mantissa_str} x 10^{oom}.

\n

The power of ten is an exact value, so it contributes no uncertainty to the answer. The precision of the logarithm is therefore inherited entirely from {mantissa_str}, which has {sf_x} significant figures.

\n

Split into scientific notation

\n

log({x_str}) = log({mantissa_str}) + log(10^{oom}) = {log_exact_str} 

\n

Take logs of both parts

\n

log({x_str}) = {log_mantissa} + {oom} = {log_exact_str} 

\n

Keep the same number of sf for rounded logs

\n

log({x_str}) = {log_mantissa_rounded} + {oom} = {log_exact_str} 

\n

Finally add by obeying the rules of addtion, i.e. take the minium of {sf_x} decimal places and the exact value of the power.

\n

So the answer should be given to {sf_x} decimal places, regardless of whether the digit before the decimal point is 0 or not.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"sf_x": {"name": "sf_x", "group": "Ungrouped variables", "definition": "random(3,4,5)", "description": "", "templateType": "anything", "can_override": false}, "oom": {"name": "oom", "group": "Ungrouped variables", "definition": "random(-1,0,1)", "description": "", "templateType": "anything", "can_override": false}, "dp_mantissa": {"name": "dp_mantissa", "group": "Ungrouped variables", "definition": "sf_x - 1", "description": "", "templateType": "anything", "can_override": false}, "mantissa": {"name": "mantissa", "group": "Ungrouped variables", "definition": "random(1..9) + random(0..(10^dp_mantissa - 1)) / 10^dp_mantissa", "description": "", "templateType": "anything", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "mantissa * 10^oom", "description": "", "templateType": "anything", "can_override": false}, "x_dp": {"name": "x_dp", "group": "Ungrouped variables", "definition": "dp_mantissa - oom", "description": "", "templateType": "anything", "can_override": false}, "x_str": {"name": "x_str", "group": "Ungrouped variables", "definition": "dpformat(x, x_dp)", "description": "", "templateType": "anything", "can_override": false}, "log_exact": {"name": "log_exact", "group": "Ungrouped variables", "definition": "log(x, 10)", "description": "", "templateType": "anything", "can_override": false}, "required_dp": {"name": "required_dp", "group": "Ungrouped variables", "definition": "sf_x", "description": "", "templateType": "anything", "can_override": false}, "mantissa_str": {"name": "mantissa_str", "group": "Ungrouped variables", "definition": "dpformat(mantissa, dp_mantissa)", "description": "", "templateType": "anything", "can_override": false}, "log_exact_str": {"name": "log_exact_str", "group": "Ungrouped variables", "definition": "dpformat(log_exact, required_dp)", "description": "", "templateType": "anything", "can_override": false}, "log_mantissa_rounded": {"name": "log_mantissa_rounded", "group": "Ungrouped variables", "definition": "precround(log_mantissa,sf_x)", "description": "", "templateType": "anything", "can_override": false}, "log_mantissa": {"name": "log_mantissa", "group": "Ungrouped variables", "definition": "precround(log(mantissa),8)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["sf_x", "oom", "dp_mantissa", "mantissa", "x", "x_dp", "x_str", "log_exact", "required_dp", "mantissa_str", "log_exact_str", "log_mantissa_rounded", "log_mantissa"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "minValue": "log_exact", "maxValue": "log_exact", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "required_dp", "precisionPartialCredit": "0", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}, {"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/38947/"}], "resources": []}]}], "contributors": [{"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2415/"}, {"name": "Ed Southwood", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/38947/"}]}