// Numbas version: finer_feedback_settings {"name": "Significant figures: powers and exponents", "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: powers and exponents", "tags": [], "metadata": {"description": "
Part a) A cube with side {s_str} cm has {sf_s} significant figures. When you raise a measured value to a power, the answer keeps the same number of significant figures as the original value.
\nVolume = {s_str}^3 = {volume_exact_str} cm^3, which rounds to {correct_volume_str} cm^3 ({sf_s} significant figures).
\nPart b) 10^{e_str} is an antilog. The number of decimal places in the exponent ({dp_e}) tells you how many significant figures the answer should have — but if the size (magnitude) of the exponent is greater than 1, you lose one significant figure.
\nHere the exponent is {e_str}, so the answer should have {required_sf} significant figures: 10^{e_str} = {correct_antilog_str} rounded to {required_sf} significant figures.
", "licence": "None specified"}, "statement": "Answer both parts below, giving each to the appropriate number of significant figures.
", "advice": "Part a) A cube with side {s_str} cm has {sf_s} significant figures. When you raise a measured value to a power, the answer keeps the same number of significant figures as the original value.
\nVolume = {s_str}$^3$ = {volume_exact_str} cm$^3$, which rounds to {correct_volume_str} cm$^3$ ({sf_s} significant figures).
\nPart b) $10^{\\var{e_str}}$ is an antilog. The number of significant figures in the exponent ({sf_e}) tells you how many significant figures the answer should have, but if the magnitude of the exponent is greater than 1, you lose one significant figure.
\nHere the exponent is {e_str}, so the answer should have {required_sf} significant figures: $10^{\\var{e_str}}$ = {correct_antilog_str}, rounded to {required_sf} significant figures.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"sf_s": {"name": "sf_s", "group": "Ungrouped variables", "definition": "random(3,4)", "description": "", "templateType": "anything", "can_override": false}, "dp_s": {"name": "dp_s", "group": "Ungrouped variables", "definition": "sf_s - 1", "description": "", "templateType": "anything", "can_override": false}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "random(1..9) + random(0..(10^dp_s - 1)) / 10^dp_s", "description": "", "templateType": "anything", "can_override": false}, "s_str": {"name": "s_str", "group": "Ungrouped variables", "definition": "dpformat(s, dp_s)", "description": "", "templateType": "anything", "can_override": false}, "volume_exact": {"name": "volume_exact", "group": "Ungrouped variables", "definition": "s^3", "description": "", "templateType": "anything", "can_override": false}, "correct_volume": {"name": "correct_volume", "group": "Ungrouped variables", "definition": "even_sf(dec(s_str)^3, sf_s)", "description": "", "templateType": "anything", "can_override": false}, "dp_e": {"name": "dp_e", "group": "Ungrouped variables", "definition": "random(2,3)", "description": "", "templateType": "anything", "can_override": false}, "e_sign": {"name": "e_sign", "group": "Ungrouped variables", "definition": "random(-1,1)", "description": "", "templateType": "anything", "can_override": false}, "e": {"name": "e", "group": "Ungrouped variables", "definition": "e_sign * e_abs_int / 10^dp_e", "description": "", "templateType": "anything", "can_override": false}, "e_str": {"name": "e_str", "group": "Ungrouped variables", "definition": "dpformat(e, dp_e)", "description": "", "templateType": "anything", "can_override": false}, "required_sf": {"name": "required_sf", "group": "Ungrouped variables", "definition": "sf_e - if(abs(e) > 1, 1, 0)", "description": "", "templateType": "anything", "can_override": false}, "correct_antilog": {"name": "correct_antilog", "group": "Ungrouped variables", "definition": "siground(10^e, required_sf)", "description": "", "templateType": "anything", "can_override": false}, "volume_exact_str": {"name": "volume_exact_str", "group": "Ungrouped variables", "definition": "dpformat(volume_exact, 3*dp_s)", "description": "", "templateType": "anything", "can_override": false}, "correct_volume_str": {"name": "correct_volume_str", "group": "Ungrouped variables", "definition": "sigformat(correct_volume, sf_s)", "description": "", "templateType": "anything", "can_override": false}, "correct_antilog_str": {"name": "correct_antilog_str", "group": "Ungrouped variables", "definition": "[sigformat(correct_antilog, required_sf), antilog_mantissa_str + \" \u00d7 10\" + antilog_exp_sup][award(1, antilog_sci)]", "description": "", "templateType": "anything", "can_override": false}, "e_abs_int": {"name": "e_abs_int", "group": "Ungrouped variables", "definition": "random(list(10^(dp_e-1)..floor(0.98*10^dp_e)) + list(ceil(1.02*10^dp_e)..(6*10^dp_e - 1)))", "description": "", "templateType": "anything", "can_override": false}, "sf_e": {"name": "sf_e", "group": "Ungrouped variables", "definition": "countsigfigs(e_str)", "description": "", "templateType": "anything", "can_override": false}, "antilog_exp": {"name": "antilog_exp", "group": "Ungrouped variables", "definition": "floor(log(correct_antilog))", "description": "", "templateType": "anything", "can_override": false}, "antilog_mantissa_str": {"name": "antilog_mantissa_str", "group": "Ungrouped variables", "definition": "sigformat(correct_antilog / 10^antilog_exp, required_sf)", "description": "", "templateType": "anything", "can_override": false}, "antilog_sci": {"name": "antilog_sci", "group": "Ungrouped variables", "definition": "antilog_exp < -2 or antilog_exp >= required_sf", "description": "", "templateType": "anything", "can_override": false}, "antilog_exp_sup": {"name": "antilog_exp_sup", "group": "Ungrouped variables", "definition": "join(map([\"-\": \"\u207b\", \"0\": \"\u2070\", \"1\": \"\u00b9\", \"2\": \"\u00b2\", \"3\": \"\u00b3\", \"4\": \"\u2074\", \"5\": \"\u2075\", \"6\": \"\u2076\", \"7\": \"\u2077\", \"8\": \"\u2078\", \"9\": \"\u2079\"][c], c, split(string(antilog_exp), \"\")), \"\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["sf_s", "dp_s", "s", "s_str", "volume_exact", "correct_volume", "dp_e", "e_sign", "e", "e_str", "required_sf", "correct_antilog", "volume_exact_str", "correct_volume_str", "correct_antilog_str", "e_abs_int", "sf_e", "antilog_exp", "antilog_mantissa_str", "antilog_sci", "antilog_exp_sup"], "variable_groups": [], "functions": {"even_sf": {"parameters": [["x", "decimal"], ["n", "number"]], "type": "decimal", "language": "javascript", "definition": "// Round x to n significant figures, rounding a tie (exactly 5) to the even digit\nreturn new Numbas.math.ComplexDecimal(x.re.toSignificantDigits(n, Decimal.ROUND_HALF_EVEN));"}, "even_dp": {"parameters": [["x", "decimal"], ["n", "number"]], "type": "decimal", "language": "javascript", "definition": "// Round x to n decimal places, rounding a tie (exactly 5) to the even digit\nreturn new Numbas.math.ComplexDecimal(x.re.toDecimalPlaces(n, Decimal.ROUND_HALF_EVEN));"}}, "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, "prompt": "A cube has side length {s_str} cm. Calculate its volume, to the appropriate number of significant figures.
", "minValue": "correct_volume", "maxValue": "correct_volume", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": "50", "displayAnswer": "", "precisionType": "sigfig", "precision": "sf_s", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en", "scientific"], "correctAnswerStyle": "plain"}, {"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, "prompt": "Calculate $10^{\\var{e_str}}$, to the appropriate number of significant figures.
For very large or very small answers you can use scientific notation, typing e.g. 2.4e-6 for $2.4 \\times 10^{-6}$.