// Numbas version: finer_feedback_settings {"name": "Heat flow formula", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Heat flow formula", "tags": [], "metadata": {"description": "

Two part question, student has to rearrange the heat flow formula (stated in the question) to make T_1 or T_2 the subject (variable is chosen randomly), then find the value of this variable when values of the other variables in the formula are given. These values are randomly chosen.

\n

Note that the advice for this question has two versions, the one displayed to the student depends on which variable is selected by the question.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

The amount of heat flowing along a metal rod is given by the formula \\[ Q=CA \\left( \\frac{T_2-T_1}{l} \\right) \\]where \\(C\\) is the thermal conductivity of the metal, \\(A\\) is the cross sectional area of the rod, \\(l\\) is the rod's length and \\(T_1\\) and \\(T_2\\) are the temperatures of the two ends of the rod.

", "advice": "

We have \\begin{align}Q&=CA \\left( \\frac{T_2-T_1}{l} \\right)\\quad\\text{divide both sides by }CA\\\\\\frac{Q}{CA}&=\\left( \\frac{T_2-T_1}{l} \\right)\\quad\\text{multiply both sides by }l\\\\\\frac{Ql}{CA}&=\\left( T_2-T_1 \\right)\\quad\\text{add }T_1\\text{ to both sides}\\\\\\frac{Ql}{CA}+T_1&=T_2\\\\T_2&=\\frac{Ql}{CA}+T_1\\end{align}

\n

\\begin{align}Q&=CA \\left( \\frac{T_2-T_1}{l} \\right)\\quad\\text{divide both sides by }CA\\\\\\frac{Q}{CA}&=\\left( \\frac{T_2-T_1}{l} \\right)\\quad\\text{multiply both sides by }l\\\\\\frac{Ql}{CA}&=\\left( T_2-T_1 \\right)\\quad\\text{add }T_1\\text{ to both sides}\\\\\\frac{Ql}{CA}+T_1&=T_2\\quad\\text{subtract }\\frac{Ql}{CA}\\text{ from both sides}\\\\T_1&=T_2-\\frac{Ql}{CA}\\end{align}

\n

Given  \\(A=\\var{A}\\) m\\(^2\\), \\(l=\\var{l}\\) m, \\(C=50\\) W/mK, \\(Q=\\var{Q}\\)  and \\(\\var{other_var}=\\var{L1}^\\circ\\) C we have

\n

\\begin{align}T_2&=\\frac{\\var{Q}\\times\\var{l}}{50\\times\\var{A}}+\\var{L1}\\\\&\\approx\\var{precround(value,2)}^\\circ C\\end{align}

\n

\\begin{align}T_1&=\\var{L1}-\\frac{\\var{Q}\\times\\var{l}}{50\\times\\var{A}}\\\\&\\approx\\var{precround(value,2)}^\\circ C\\end{align}

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": false, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"A": {"name": "A", "group": "Ungrouped variables", "definition": "random(0.2..0.9 #0.1)", "description": "

value of A for substitution part of question, random 0.2 to 0.9 in steps of 0.1

", "templateType": "anything", "can_override": false}, "L1": {"name": "L1", "group": "Ungrouped variables", "definition": "random(50..90 #10)", "description": "

Value of \"other_var\" for substitution part of question, random 50 to 90 in steps of 10

", "templateType": "anything", "can_override": false}, "variable": {"name": "variable", "group": "Ungrouped variables", "definition": "[latex('T_1'),latex('T_2')]", "description": "

Variables which can be used for rearrangement part of question. Student will be asked to rearrange the heat flow formula with one of these variables as the subject.

", "templateType": "anything", "can_override": false}, "select": {"name": "select", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "

selector to determine which variable of the heat flow formula is to be the subject - 0 = T_1, 1 = T_2.

", "templateType": "anything", "can_override": false}, "sel_var": {"name": "sel_var", "group": "Ungrouped variables", "definition": "variable[select]", "description": "

Variable selected by select

", "templateType": "anything", "can_override": false}, "answers": {"name": "answers", "group": "Ungrouped variables", "definition": "[expression('T_2-(Q*l)/(C*A)'),expression('(Q*l)/(C*A)+T_1')]", "description": "

rearrangements of heat flow formula for each possible variable

", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "answers[select]", "description": "

correct formula for the variable selected by select

", "templateType": "anything", "can_override": false}, "other_var": {"name": "other_var", "group": "Ungrouped variables", "definition": "if(sel_var=\"T_1\",latex('T_2'),latex('T_1'))", "description": "

unselected variable from \"variable\"

", "templateType": "anything", "can_override": false}, "l": {"name": "l", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "

Value of l for substitution part of question, random integer between 2 and 9

", "templateType": "anything", "can_override": false}, "Q": {"name": "Q", "group": "Ungrouped variables", "definition": "random(10..30)", "description": "

Value of Q for substitution part of question, random integer between 10 and 30

", "templateType": "anything", "can_override": false}, "values": {"name": "values", "group": "Ungrouped variables", "definition": "[L1-Q*l/(50*A),Q*l/(50*A)+L1]", "description": "

values for each form of rearranged equation with given variable values

", "templateType": "anything", "can_override": false}, "value": {"name": "value", "group": "Ungrouped variables", "definition": "values[select]", "description": "

correct answer for selected variable after substitution

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["A", "L1", "variable", "select", "sel_var", "answers", "ans", "other_var", "l", "Q", "values", "value"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Rearrange the formula to make \\(\\var{sel_var}\\) the subject. (Note: to type a variable such as \\(T_1\\), type T_1, to enter a fraction such as \\(\\frac{a}{b}\\), type a/b.)

\n

\\(\\var{sel_var}=\\)[[0]] (You must show full working on your ahndwriten working for this part to get full marks)

\n

If \\(A=\\var{A}\\) m\\(^2\\), \\(l=\\var{l}\\) m, \\(C=50\\) W/mK, \\(Q=\\var{Q}\\)  and \\(\\var{other_var}=\\var{L1}^\\circ\\) C, what is the value of \\(\\var{sel_var}\\)?

\n

\\(\\var{sel_var}=\\)[[1]] degrees C (answer to 2 decimal places)

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{answers[select]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": true, "allowUnknownFunctions": false, "implicitFunctionComposition": true, "caseSensitive": false, "valuegenerators": []}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "value", "maxValue": "value", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Hanh Vo", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12984/"}]}]}], "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"name": "Hanh Vo", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12984/"}]}