// 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, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Using Pythagoras to find a missing side (Eukleides diagrams)", "tags": [], "metadata": {"description": "

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

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

\n

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

\n

{RightAngledTriangle}

", "advice": "

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

\n

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

\n

$x = \\var{ans1}$

\n

\n

", "rulesets": {}, "extensions": ["eukleides"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"lent2": {"name": "lent2", "group": "Ungrouped variables", "definition": "random(1..6)", "description": "", "templateType": "anything", "can_override": false}, "lent1": {"name": "lent1", "group": "Ungrouped variables", "definition": "random(5..10)", "description": "", "templateType": "anything", "can_override": false}, "ang1": {"name": "ang1", "group": "Ungrouped variables", "definition": "random(63..65)", "description": "", "templateType": "anything", "can_override": false}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "sqrt(lent1^2+lent2^2)", "description": "", "templateType": "anything", "can_override": false}, "RightAngledTriangle": {"name": "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 )", "description": "

A diagram of a right angled triangle.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ang1", "lent1", "ans1", "lent2", "RightAngledTriangle"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Find the value of x correct to 2 decimal places:

\n

x = [[0]] mm

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{ans1}", "maxValue": "{ans1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"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": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"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/"}]}