// Numbas version: exam_results_page_options {"name": "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": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["ang1", "lent1", "ans1", "lent2", "RightAngledTriangle"], "tags": [], "extensions": ["eukleides"], "variable_groups": [], "preamble": {"css": "", "js": ""}, "variables": {"lent2": {"group": "Ungrouped variables", "definition": "random(1..6)", "name": "lent2", "description": "", "templateType": "anything"}, "lent1": {"group": "Ungrouped variables", "definition": "random(5..10)", "name": "lent1", "description": "", "templateType": "anything"}, "ang1": {"group": "Ungrouped variables", "definition": "random(63..65)", "name": "ang1", "description": "", "templateType": "anything"}, "ans1": {"group": "Ungrouped variables", "definition": "sqrt(lent1^2+lent2^2)", "name": "ans1", "description": "", "templateType": "anything"}, "RightAngledTriangle": {"group": "Ungrouped variables", "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 )", "name": "RightAngledTriangle", "description": "

A diagram of a right angled triangle.

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

Find the value of x correct to 2 decimal places:

\n

x = [[0]] mm

", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "customName": "", "marks": 0}], "name": "Using Pythagoras to find a missing side (Eukleides diagrams)", "metadata": {"description": "

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

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "statement": "

\n

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

\n

{RightAngledTriangle}

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

\n

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

\n

$x = \\var{ans1}$

\n

\n

", "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/"}]}]}], "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/"}]}