// Numbas version: exam_results_page_options {"name": "Pythagoras' Theorem: find other side (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", "c", "aa", "cc", "diff"], "name": "Pythagoras' Theorem: find other side (using surds)", "tags": [], "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 $\\sqrt{\\var{cc}}^2=\\var{a}^2+b^2$. We solve for $b$:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{cc}$$=$$\\var{aa}+b^2$
$\\var{cc}-\\var{aa}$$=$$\\var{aa}+b^2-\\var{aa}$
$\\var{diff}$$=$$b^2$
$\\sqrt{\\var{diff}}$$=$$b$
\n

Therefore the length of $b$ is $\\sqrt{\\var{diff}}$.

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

A particular right-angled triangle has a hypotenuse of length {c}, and another side of length of $\\var{a}$. What is the length of the remaining side?

\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)

\n

Do not enter decimals!

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(1..11)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "aa": {"definition": "a^2", "templateType": "anything", "group": "Ungrouped variables", "name": "aa", "description": ""}, "c": {"definition": "'\\$\\\\simplify{sqrt({cc})\\}$'", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "cc": {"definition": "random(144..624 except [169,196,225,256,289,324,361,400,441,484,529,576])", "templateType": "anything", "group": "Ungrouped variables", "name": "cc", "description": ""}, "diff": {"definition": "cc-aa", "templateType": "anything", "group": "Ungrouped variables", "name": "diff", "description": ""}}, "metadata": {"description": "

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

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "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/"}]}