// 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": [{"name": "Pythagoras' Theorem: find other side (using surds)", "tags": [], "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"}, "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). 

", "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": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"diff": {"name": "diff", "group": "Ungrouped variables", "definition": "cc-aa", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "'\\$\\\\simplify{sqrt({cc})\\}$'", "description": "", "templateType": "anything", "can_override": false}, "cc": {"name": "cc", "group": "Ungrouped variables", "definition": "random(144..624 except [169,196,225,256,289,324,361,400,441,484,529,576])", "description": "", "templateType": "anything", "can_override": false}, "aa": {"name": "aa", "group": "Ungrouped variables", "definition": "a^2", "description": "", "templateType": "anything", "can_override": false}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1..11)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "c", "aa", "cc", "diff"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "sqrt({diff})", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}