// Numbas version: exam_results_page_options {"name": "Maximum/minimum2", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Untitled2.jpg", "/srv/numbas/media/question-resources/Untitled2.jpg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["v"], "name": "Maximum/minimum2", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

\\(\\pi r^2h=\\var{v}\\)

\n

\\(h=\\frac{\\var{v}}{\\pi r^2}\\)

\n

The total surface area is to be a minimum.

\n

Lid + curved surface area + base

\n

\\(A=\\pi r^2+2\\pi rh+\\pi r^2\\)

\n

\\(A=2\\pi r^2+2\\pi r\\left(\\frac{\\var{v}}{\\pi r^2}\\right)\\)

\n

\\(A=2\\pi r^2+\\simplify{2*{v}}r^{-1}\\)

\n

\\(\\frac{dA}{dr}=4\\pi r-\\simplify{2{v}}r^{-2}=0\\)

\n

\\(4\\pi r=\\simplify{2*{v}}/{r^2}\\)

\n

\\(r^3=\\frac{\\var{v}}{2\\pi}\\)

\n

\\(r=\\simplify{({v}/(2*pi))^(1/3)}\\)

\n

From the second line we have the relation \\(h=\\frac{\\var{v}}{\\pi r^2}\\) to get

\n

\\(h=2*\\simplify{({v}/(2*pi))^(1/3)}\\)

\n

", "rulesets": {}, "parts": [{"prompt": "

Input the cyinder height, correct to two decimal places.

\n

\\(h = \\) [[0]]

\n

Input the required cylinder radius, correct to two decimal places.

\n

\\(r = \\) [[1]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "2*({v}/(2*pi))^(1/3)", "strictPrecision": false, "minValue": "2*({v}/(2*pi))^(1/3)", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "showPrecisionHint": false, "type": "numberentry"}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "({v}/(2*pi))^(1/3)", "strictPrecision": false, "minValue": "({v}/(2*pi))^(1/3)", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "showPrecisionHint": false, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

A closed cylindrical tank is to be built having a volume of \\(\\var{v}\\) cc.

\n

Determine the required height, \\(h\\), and radius, \\(r\\), if the total surface area is to be a minimum.

\n

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"v": {"definition": "random(50..300#5)", "templateType": "randrange", "group": "Ungrouped variables", "name": "v", "description": ""}}, "metadata": {"description": "

Problem on a closed cylindrical tank having minimum surface area

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}