// Numbas version: exam_results_page_options {"name": "Pythagoras' Theorem: find hypotenuse (using surds)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/right_angled_triangle_4erLEm1.svg", "/srv/numbas/media/question-resources/right_angled_triangle_4erLEm1.svg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "aa", "bb", "sum"], "name": "Pythagoras' Theorem: find hypotenuse (using surds)", "tags": ["pythagoras", "surds"], "preamble": {"css": "", "js": ""}, "advice": "

Pythagoras' Theorem says that given the right angled triangle with sides labelled as below, $c^2=a^2+b^2$.

\n

\n

\n

Using the side lengths given in the question we have that $c^2=\\var{a}^2+\\sqrt{\\var{bb}}^2=\\var{sum}$. Solving for $c$, gives $c=\\sqrt{\\var{sum}}$.

\n

", "rulesets": {}, "parts": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "sqrt({sum})", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "extensions": [], "statement": "

A particular right-angled triangle has non-hypotenuse side lengths of $\\var{a}$ and {b}. What is the length of the hypotenuse?

\n

\n

Note: If your answer is $\\sqrt{17}$, then enter sqrt(17), if you answer is $2\\sqrt{5}$ then enter 2*sqrt(5)

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "variables": {"a": {"definition": "random(1..15)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "aa": {"definition": "a^2", "templateType": "anything", "group": "Ungrouped variables", "name": "aa", "description": ""}, "sum": {"definition": "aa+bb", "templateType": "anything", "group": "Ungrouped variables", "name": "sum", "description": ""}, "b": {"definition": "'\\$\\\\simplify{sqrt({bb})\\}$'", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "bb": {"definition": "random(2,3,5,6,7,8,10,11,12,13,14,15,17,18,19,20,21,22,23,24,26)", "templateType": "anything", "group": "Ungrouped variables", "name": "bb", "description": ""}}, "metadata": {"description": "

Using Pythagoras' theorem to determine the hypotenuse, where side lengths include surds and students enter using sqrt syntax

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/632/"}]}]}], "contributors": [{"name": "Paul Howes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/632/"}]}