// Numbas version: exam_results_page_options {"name": "Katherine's copy of Equation of a straight line: using 2 points on the line", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "c", "d", "m", "b1"], "extensions": [], "statement": "

Find the equation of the straight line that passes through the points, $(\\var{a}, \\var{b})$ and $(\\var{c}, \\var{d})$.  Give your answer in the form $y=mx+b$

", "variables": {"b1": {"definition": "({a}*{d}-{b}*{c})/({a}-{c})", "templateType": "anything", "name": "b1", "group": "Ungrouped variables", "description": ""}, "d": {"definition": "random(-10..10 except b)", "templateType": "anything", "name": "d", "group": "Ungrouped variables", "description": ""}, "b": {"definition": "random(-10..10#1)", "templateType": "randrange", "name": "b", "group": "Ungrouped variables", "description": ""}, "a": {"definition": "random(-10..10#1)", "templateType": "randrange", "name": "a", "group": "Ungrouped variables", "description": ""}, "m": {"definition": "({b}-{d})/({a}-{c})", "templateType": "anything", "name": "m", "group": "Ungrouped variables", "description": ""}, "c": {"definition": "random(-10..10 except a)", "templateType": "anything", "name": "c", "group": "Ungrouped variables", "description": ""}}, "tags": [], "preamble": {"js": "", "css": ""}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Obtain the equation of a straight line that passes through 2 points.

"}, "parts": [{"type": "gapfill", "gaps": [{"answer": "({b}-{d})/({a}-{c})*x+ ({a}*{d}-{b}*{c})/({a}-{c})", "showCorrectAnswer": true, "checkingtype": "absdiff", "showFeedbackIcon": true, "vsetrange": [0, 1], "expectedvariablenames": [], "showpreview": true, "vsetrangepoints": 5, "checkingaccuracy": 0.001, "type": "jme", "answersimplification": "all", "checkvariablenames": true, "notallowed": {"message": "

answer should contain fractions.

", "strings": ["."], "showStrings": true, "partialCredit": 0}, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "prompt": "

$y=\\;$  [[0]]

"}], "functions": {}, "advice": "", "variable_groups": [], "name": "Katherine's copy of Equation of a straight line: using 2 points on the line", "rulesets": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "Katherine Tomlinson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1652/"}]}]}], "contributors": [{"name": "Katherine Tomlinson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1652/"}]}