// Numbas version: finer_feedback_settings {"name": "Significant figures: mixed calculations", "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: mixed calculations", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
A reaction occurs at {T_C} ºC. Given $\\Delta H$ = {dH_str} kJ mol$^{-1}$ and $\\Delta S$ = {dS_str} kJ K$^{-1}$ mol$^{-1}$, calculate $\\Delta G = \\Delta H - T \\Delta S$, giving each intermediate value to the appropriate precision at each step of the calculation.
", "advice": "The first step is to calculate $T$ in Kelvin. This is an addition calculation, so we need to consider the number of decimal places in our answer.
\nSo $T$ = {T_C} ºC + 273.15 K = {correct_tk} K (we should be considering this value to have 3 sig figs).
\nThe next step is to calculate $T \\Delta S$. This is a multiplication calculation, so we need to consider the number of significant figures in our answer.
\nSo $T \\Delta S$ = {correct_tk} K $\\times$ {ds_str} kJ K$^{-1}$ mol$^{-1}$ = {correct_tds} kJ mol$^{-1}$.
\nThe final step is to calculate $\\Delta G = \\Delta H - T \\Delta S$. This is a subtraction calculation, so we need to consider the number of decimal places in our answer.
\nSo $\\Delta G$ = {dh_str} kJ mol$^{-1}$ $-$ ({correct_tds} kJ mol$^{-1}$) = {correct_dg} kJ mol$^{-1}$.
\n{safe(alt_note)}", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"dh_str": {"name": "dh_str", "group": "Ungrouped variables", "definition": "dpformat(dh, 1)", "description": "", "templateType": "anything", "can_override": false}, "ds_str": {"name": "ds_str", "group": "Ungrouped variables", "definition": "dpformat(ds, 3)", "description": "", "templateType": "anything", "can_override": false}, "t_c": {"name": "t_c", "group": "Ungrouped variables", "definition": "random(0..100)", "description": "", "templateType": "anything", "can_override": false}, "dh": {"name": "dh", "group": "Ungrouped variables", "definition": "-random(500..2000)/10", "description": "", "templateType": "anything", "can_override": false}, "ds": {"name": "ds", "group": "Ungrouped variables", "definition": "random(100..250)/1000", "description": "", "templateType": "anything", "can_override": false}, "t_k_exact": {"name": "t_k_exact", "group": "Ungrouped variables", "definition": "t_c + 273.15", "description": "", "templateType": "anything", "can_override": false}, "tds_exact": {"name": "tds_exact", "group": "Ungrouped variables", "definition": "t_k_exact * ds", "description": "", "templateType": "anything", "can_override": false}, "dg_exact": {"name": "dg_exact", "group": "Ungrouped variables", "definition": "dh - tds_exact", "description": "", "templateType": "anything", "can_override": false}, "dp_t": {"name": "dp_t", "group": "Ungrouped variables", "definition": "0", "description": "", "templateType": "anything", "can_override": false}, "sf_tds": {"name": "sf_tds", "group": "Ungrouped variables", "definition": "3", "description": "", "templateType": "anything", "can_override": false}, "dp_dg": {"name": "dp_dg", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything", "can_override": false}, "correct_tk": {"name": "correct_tk", "group": "Ungrouped variables", "definition": "dpformat(tk_rounded, 0)", "description": "", "templateType": "anything", "can_override": false}, "correct_tds": {"name": "correct_tds", "group": "Ungrouped variables", "definition": "dpformat(tds_r, 1)", "description": "", "templateType": "anything", "can_override": false}, "correct_dg": {"name": "correct_dg", "group": "Ungrouped variables", "definition": "dpformat(dg_r, dp_dg)", "description": "", "templateType": "anything", "can_override": false}, "tk_rounded": {"name": "tk_rounded", "group": "Ungrouped variables", "definition": "even_dp(dec(t_c) + dec(\"273.15\"), 0)", "description": "", "templateType": "anything", "can_override": false}, "tds_r": {"name": "tds_r", "group": "Ungrouped variables", "definition": "even_sf(tk_rounded * dec(ds_str), sf_tds)", "description": "", "templateType": "anything", "can_override": false}, "tds_x": {"name": "tds_x", "group": "Ungrouped variables", "definition": "even_sf((dec(t_c) + dec(\"273.15\")) * dec(ds_str), sf_tds)", "description": "", "templateType": "anything", "can_override": false}, "dg_r": {"name": "dg_r", "group": "Ungrouped variables", "definition": "even_dp(dec(dh_str) - tds_r, dp_dg)", "description": "", "templateType": "anything", "can_override": false}, "dg_x": {"name": "dg_x", "group": "Ungrouped variables", "definition": "even_dp(dec(dh_str) - (dec(t_c) + dec(\"273.15\")) * dec(ds_str), dp_dg)", "description": "", "templateType": "anything", "can_override": false}, "tk_exact_str": {"name": "tk_exact_str", "group": "Ungrouped variables", "definition": "dpformat(dec(t_c) + dec(\"273.15\"), 2)", "description": "", "templateType": "anything", "can_override": false}, "alt_note": {"name": "alt_note", "group": "Ungrouped variables", "definition": "if(tds_r = tds_x and dg_r = dg_x, \"\", \"If you kept the unrounded temperature, \" + tk_exact_str + \" K, through the calculation you would get $T \\\\Delta S$ = \" + dpformat(tds_x,1) + \" kJ mol$^{-1}$ and $\\\\Delta G$ = \" + dpformat(dg_x,dp_dg) + \" kJ mol$^{-1}$. Both routes are accepted.
\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "5000"}, "ungrouped_variables": ["dh_str", "ds_str", "t_c", "dh", "ds", "t_k_exact", "tds_exact", "dg_exact", "dp_t", "sf_tds", "dp_dg", "correct_tk", "correct_tds", "correct_dg", "tk_rounded", "tds_r", "tds_x", "dg_r", "dg_x", "tk_exact_str", "alt_note"], "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": "Convert {T_C} ºC to Kelvin.
", "minValue": "tk_rounded", "maxValue": "tk_rounded", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "dp_t", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "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 $T \\Delta S$, given $\\Delta S$ = {ds_str} kJ K$^{-1}$ mol$^{-1}$.
", "minValue": "min(tds_r, tds_x)", "maxValue": "max(tds_r, tds_x)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "sigfig", "precision": "sf_tds", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "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 $\\Delta G = \\Delta H - T \\Delta S$, given $\\Delta H$ = {dh_str} kJ mol$^{-1}$.
", "minValue": "min(dg_r, dg_x)", "maxValue": "max(dg_r, dg_x)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "dp_dg", "precisionPartialCredit": "50", "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/"}]}