// Numbas version: exam_results_page_options {"name": "Terry's copy of Straight lines: one point gradient", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"type": "question", "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0, "name": ""}], "variable_groups": [], "variables": {"bscale": {"group": "Ungrouped variables", "name": "bscale", "definition": "random(-2..2 except [0,scale])", "templateType": "anything", "description": ""}, "point_x": {"group": "Ungrouped variables", "name": "point_x", "definition": "run*scale", "templateType": "anything", "description": ""}, "run": {"group": "Ungrouped variables", "name": "run", "definition": "random(2,3,5,7)", "templateType": "anything", "description": ""}, "point_y": {"group": "Ungrouped variables", "name": "point_y", "definition": "b+rise*scale", "templateType": "anything", "description": ""}, "rise": {"group": "Ungrouped variables", "name": "rise", "definition": "if(run=2,random(1,3,5,7),if(run=3,random(1,2,4,5,7),if(run=5,random(1,2,3,4,6,7),if(run=7,random(1,2,3,4,5,6)))))", "templateType": "anything", "description": ""}, "scale": {"group": "Ungrouped variables", "name": "scale", "definition": "random(-1,1,2,-2)", "templateType": "anything", "description": ""}, "bpoint_x": {"group": "Ungrouped variables", "name": "bpoint_x", "definition": "brun*bscale", "templateType": "anything", "description": ""}, "bb": {"group": "Ungrouped variables", "name": "bb", "definition": "random(-5..12 except 0)", "templateType": "anything", "description": ""}, "brun": {"group": "Ungrouped variables", "name": "brun", "definition": "random(2,3,5,7)", "templateType": "anything", "description": ""}, "b": {"group": "Ungrouped variables", "name": "b", "definition": "random(-12..5 except 0)", "templateType": "anything", "description": ""}, "brise": {"group": "Ungrouped variables", "name": "brise", "definition": "-if(brun=2,random(1,3,5,7),if(brun=3,random(1,2,4,5,7),if(brun=5,random(1,2,3,4,6,7),if(brun=7,random(1,2,3,4,5,6)))))", "templateType": "anything", "description": ""}, "bpoint_y": {"group": "Ungrouped variables", "name": "bpoint_y", "definition": "bb+brise*bscale", "templateType": "anything", "description": ""}}, "showQuestionGroupNames": false, "preamble": {"js": "", "css": ""}, "tags": ["graph", "linear", "linear equation", "Straight Line", "straight line", "y=mx+b"], "name": "Terry's copy of Straight lines: one point gradient", "rulesets": {}, "statement": "", "ungrouped_variables": ["b", "run", "rise", "point_y", "point_x", "scale", "bb", "brun", "brise", "bscale", "bpoint_y", "bpoint_x"], "functions": {}, "parts": [{"gaps": [{"vsetrangepoints": 5, "answer": "{rise}/{run}*x+{b}", "type": "jme", "vsetrange": [0, 1], "showCorrectAnswer": true, "checkingaccuracy": 0.001, "answersimplification": "all", "showpreview": true, "checkvariablenames": true, "checkingtype": "absdiff", "variableReplacements": [], "expectedvariablenames": ["x"], "marks": "2", "scripts": {}, "variableReplacementStrategy": "originalfirst", "notallowed": {"message": "", "strings": ["="], "showStrings": false, "partialCredit": 0}}], "type": "gapfill", "steps": [{"type": "information", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "
There are two common ways to approach these questions:
\nFor example, suppose we had to find the equation of the line through $(2,3)$ with a gradient of $\\frac{1}{4}$. The following are examples of using the above approaches:
\nRecall $\\frac{x}{4}$ is the same as $\\frac{1}{4}x$.
"}], "variableReplacements": [], "stepsPenalty": "1", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "The gradient intercept form of the line that passes through the point ({point_x},{point_y}) with a gradient of $\\simplify{{rise}/{run}}$ is $y=$ [[0]].
"}, {"gaps": [{"vsetrangepoints": 5, "answer": "{brise}/{brun}*x+{bb}", "type": "jme", "vsetrange": [0, 1], "showCorrectAnswer": true, "checkingaccuracy": 0.001, "answersimplification": "all", "showpreview": true, "checkvariablenames": true, "checkingtype": "absdiff", "variableReplacements": [], "expectedvariablenames": ["x"], "marks": "2", "scripts": {}, "variableReplacementStrategy": "originalfirst", "notallowed": {"message": "", "strings": ["="], "showStrings": false, "partialCredit": 0}}], "type": "gapfill", "steps": [{"type": "information", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "There are two common ways to approach these questions:
\nFor example, suppose we had to find the equation of the line through $(2,3)$ with a gradient of $-\\frac{1}{4}$. The following are examples of using the above approaches:
\nRecall $-\\frac{x}{4}$ is the same as $-\\frac{1}{4}x$.
"}], "variableReplacements": [], "stepsPenalty": "1", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "The gradient intercept form of the line that passes through the point ({bpoint_x},{bpoint_y}) with a gradient of $\\simplify{{brise}/{brun}}$ is $y=$ [[0]].
"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"description": "Given one point and the gradient determine the equation of the line.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "notes": ""}, "advice": "", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}