// Numbas version: exam_results_page_options {"name": "Terry's copy of 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": [{"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

", "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)

", "preamble": {"css": "", "js": ""}, "name": "Terry's copy of Pythagoras' Theorem: find hypotenuse (using surds)", "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

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

"}, "type": "question", "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "variables": {"sum": {"group": "Ungrouped variables", "templateType": "anything", "definition": "aa+bb", "name": "sum", "description": ""}, "aa": {"group": "Ungrouped variables", "templateType": "anything", "definition": "a^2", "name": "aa", "description": ""}, "bb": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(2,3,5,6,7,8,10,11,12,13,14,15,17,18,19,20,21,22,23,24,26)", "name": "bb", "description": ""}, "b": {"group": "Ungrouped variables", "templateType": "anything", "definition": "'\\$\\\\simplify{sqrt({bb})\\}$'", "name": "b", "description": ""}, "a": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..15)", "name": "a", "description": ""}}, "question_groups": [{"pickQuestions": 0, "questions": [], "name": "", "pickingStrategy": "all-ordered"}], "functions": {}, "parts": [{"showCorrectAnswer": true, "marks": 1, "checkingtype": "absdiff", "expectedvariablenames": [], "type": "jme", "answer": "sqrt({sum})", "variableReplacements": [], "showpreview": true, "vsetrangepoints": 5, "vsetrange": [0, 1], "variableReplacementStrategy": "originalfirst", "scripts": {}, "checkingaccuracy": 0.001, "checkvariablenames": false}], "showQuestionGroupNames": false, "extensions": [], "tags": ["pythagoras", "surds"], "rulesets": {}, "ungrouped_variables": ["a", "b", "aa", "bb", "sum"], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}