// Numbas version: exam_results_page_options {"name": "2.5.2 Task 1", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "2.5.2 Task 1", "tags": [], "metadata": {"description": "

Find the gradient of a line through 2 given points. Part of HELM Book 2.5.2.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Find the gradient of the line joining the points $A(\\var{x1}, \\var{y1})$ and $B(\\var{x2}, \\var{y2})$

", "advice": "

{diagram1}

\n

$\\begin{align}\\textrm{gradient} &= \\frac{y_2-y_1}{x_2-x_1}\\\\ &= \\frac{\\var{y2}-\\var{y1}}{\\var{x2}-\\var{x1}}\\\\&=\\frac{\\var{y2-y1}}{\\var{x2-x1}}\\\\&=\\var[fractionNumbers]{(y2-y1)/(x2-x1)}\\end{align}$



", "rulesets": {}, "extensions": ["jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"diagram1": {"name": "diagram1", "group": "Ungrouped variables", "definition": "jessiecode(\n 250,250,[-11,25, 15,-25],\"x1={x1};y1={y1};x2={x2};y2={y2};\"+safe(\n \"\"\"\n A= point(x1,y1);\n B=point(x2,y2);\n \n side_a = line(A,B);\n \n x=text(14.3,-1,\"x\"); // no idea how to get axis labels otherwise...\n y=text(-1.2,23.8,\"y\");\n \n \"\"\"),\n)", "description": "", "templateType": "anything", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "shuffle(-10..10)", "description": "", "templateType": "anything", "can_override": false}, "x1": {"name": "x1", "group": "Ungrouped variables", "definition": "v[0]", "description": "", "templateType": "anything", "can_override": false}, "x2": {"name": "x2", "group": "Ungrouped variables", "definition": "v[1]", "description": "", "templateType": "anything", "can_override": false}, "y1": {"name": "y1", "group": "Ungrouped variables", "definition": "v[2]", "description": "", "templateType": "anything", "can_override": false}, "y2": {"name": "y2", "group": "Ungrouped variables", "definition": "x1-x2+y1", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["diagram1", "v", "x1", "x2", "y1", "y2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "(y2-y1)/(x2-x1)", "maxValue": "(y2-y1)/(x2-x1)", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}