// Numbas version: exam_results_page_options {"name": "Ann's copy of Using Pythagoras to find a missing side (Eukleides diagrams)", "extensions": ["eukleides"], "custom_part_types": [], "resources": [["question-resources/Q2_0UOrG2O.png", "/srv/numbas/media/question-resources/Q2_0UOrG2O.png"]], "navigation": {"showfrontpage": false, "preventleave": false, "allowregen": true}, "question_groups": [{"questions": [{"ungrouped_variables": ["ang1", "lent1", "ans1", "lent2", "RightAngledTriangle"], "metadata": {"description": "

Using Pythagoras' Theorem to find a missing side. Illustrated using simple Eukleides diagram

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "type": "question", "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Deirdre Casey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/681/"}, {"name": "Ann Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2295/"}], "functions": {}, "variables": {"lent2": {"definition": "random(1..6)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "lent2"}, "lent1": {"definition": "random(5..10)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "lent1"}, "ans1": {"definition": "sqrt(lent1^2+lent2^2)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "ans1"}, "RightAngledTriangle": {"definition": "\neukleides(\"Right Angled Triangle\",[\n let(\n [a,b,c], right(length1,length2)\n \n \n ,[\n a..b..c filled color4,\n (a..b) label(length1+\" mm\",deg(-90),0.5),\n (b..c) label(length2+\" mm\",deg(0),0.1),\n (a..c) label(\"x\"),\n angle(a,b,c) right\n ]\n )\n ],[length1:lent1,length2:lent2]\n )", "group": "Ungrouped variables", "description": "

A diagram of a right angled triangle.

", "templateType": "anything", "name": "RightAngledTriangle"}, "ang1": {"definition": "random(63..65)", "group": "Ungrouped variables", "description": "", "templateType": "anything", "name": "ang1"}}, "preamble": {"js": "", "css": ""}, "tags": [], "advice": "

$x^2 = \\var{lent1}^2 + \\var{lent2}^2$

\n

$x = \\sqrt(\\var{lent1}^2 + \\var{lent2}^2)$

\n

$x = \\var{ans1}$

\n

\n

", "extensions": ["eukleides"], "parts": [{"useCustomName": false, "showFeedbackIcon": true, "gaps": [{"useCustomName": false, "showFeedbackIcon": true, "precision": "2", "notationStyles": ["plain", "en", "si-en"], "precisionMessage": "You have not given your answer to the correct precision.", "scripts": {}, "showCorrectAnswer": true, "correctAnswerFraction": false, "customName": "", "minValue": "{ans1}", "marks": 1, "variableReplacementStrategy": "originalfirst", "precisionType": "dp", "allowFractions": false, "mustBeReduced": false, "precisionPartialCredit": 0, "showPrecisionHint": false, "type": "numberentry", "mustBeReducedPC": 0, "strictPrecision": false, "unitTests": [], "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "variableReplacements": [], "maxValue": "{ans1}", "correctAnswerStyle": "plain"}], "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "sortAnswers": false, "prompt": "

Find the value of x correct to 2 decimal places:

\n

x = [[0]] mm

", "unitTests": [], "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "marks": 0, "type": "gapfill", "variableReplacementStrategy": "originalfirst", "customName": ""}], "variablesTest": {"condition": "", "maxRuns": 100}, "name": "Ann's copy of Using Pythagoras to find a missing side (Eukleides diagrams)", "statement": "

\n

Use the rule of pythagoras to find the length of the unknown side.

\n

{RightAngledTriangle}

", "rulesets": {}}], "pickingStrategy": "all-ordered"}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Deirdre Casey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/681/"}, {"name": "Ann Smith", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2295/"}]}