// Numbas version: finer_feedback_settings {"name": "Terry's copy of Terry's copy of Graphing: linear", "extensions": [], "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": {"xints": {"group": "Ungrouped variables", "definition": "set(-b/a)", "name": "xints", "templateType": "anything", "description": ""}, "b": {"group": "Ungrouped variables", "definition": "random(-10..10)", "name": "b", "templateType": "anything", "description": ""}, "lleading": {"group": "Ungrouped variables", "definition": "[if(a<0,1,0),if(a<0,0,1)]", "name": "lleading", "templateType": "anything", "description": ""}, "a": {"group": "Ungrouped variables", "definition": "random(-6..6 except 0)", "name": "a", "templateType": "anything", "description": ""}, "rleading": {"group": "Ungrouped variables", "definition": "[if(a>0,1,0),if(a>0,0,1)]", "name": "rleading", "templateType": "anything", "description": ""}}, "showQuestionGroupNames": false, "preamble": {"js": "", "css": ""}, "tags": ["graphing", "linear", "polynomials", "sketching", "straight lines"], "name": "Terry's copy of Terry's copy of Graphing: linear", "rulesets": {}, "statement": "
You are given the equation $y=\\simplify[all,fractionNumbers]{{a}x+{b}}$.
", "ungrouped_variables": ["a", "b", "lleading", "rleading", "xints"], "functions": {}, "extensions": [], "parts": [{"distractors": ["", "", "", "", "", ""], "variableReplacements": [], "stepsPenalty": "1", "showCorrectAnswer": true, "matrix": ["1", "0", "0", 0, 0, 0], "displayType": "radiogroup", "scripts": {}, "shuffleChoices": true, "steps": [{"type": "information", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "An equation of the form $y=ax+b$ is known as a linear equation, and its graph is a straight line.
"}], "prompt": "This equation, or its graph, can be described as a
", "marks": 0, "type": "1_n_2", "variableReplacementStrategy": "originalfirst", "choices": ["straight line
", "parabola/quadratic
", "cubic
", "hyperbola
", "circle
", "quartic
"], "maxMarks": 0, "minMarks": 0, "displayColumns": 0}, {"variableReplacements": [], "stepsPenalty": "1", "showCorrectAnswer": true, "matrix": "lleading", "shuffleChoices": false, "displayType": "radiogroup", "type": "1_n_2", "steps": [{"type": "information", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "What happens to the graph as you go far to the left or right is called the long term behaviour of a graph.
\nThe leading term (the term that includes the highest power) determines the long term behaviour of a polynomial. In our polynomial the leading term is $\\simplify[all,fractionNumbers]{{a}x}$.
\nAs we go far to the left of the graph $x$ is negative, and so $\\simplify[all,fractionNumbers]{{a}x}$ is negative. That is, the graph goes downwards. is positive. That is, the graph goes upwards.
\n"}], "prompt": "As we move to the far left of the graph, the graph
", "marks": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "choices": ["goes upwards.
", "goes downwards.
"], "maxMarks": 0, "minMarks": 0, "displayColumns": 0}, {"variableReplacements": [], "stepsPenalty": "1", "showCorrectAnswer": true, "matrix": "rleading", "shuffleChoices": false, "displayType": "radiogroup", "type": "1_n_2", "steps": [{"type": "information", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "What happens to the graph as you go far to the left or right is called the long term behaviour of a graph.
\nThe leading term (the term that includes the highest power) determines the long term behaviour of a polynomial. In our polynomial the leading term is $\\simplify[all,fractionNumbers]{{a}x}$.
\nAs we go far to the right of the graph $x$ is positive, and so $\\simplify[all,fractionNumbers]{{a}x}$ is negative. That is, the graph goes downwards. is positive. That is, the graph goes upwards.
\n"}], "prompt": "As we move to the far right of the graph, the graph
", "marks": 0, "scripts": {}, "variableReplacementStrategy": "originalfirst", "choices": ["goes upwards.
", "goes downwards.
"], "maxMarks": 0, "minMarks": 0, "displayColumns": 0}, {"type": "gapfill", "steps": [{"type": "information", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "The $y$-intercept is the value of $y$ when $x=0$, that is, the value of $y$ where the graph hits the $y$-axis. To find it, substitute $x=0$ into our equation:
\n\\[y=\\simplify[unitFactor,basic,fractionNumbers]{{a}0+{b}}=\\var{b}.\\]
\n"}], "prompt": "The $y$-intercept of the graph is $y=$[[0]].
", "stepsPenalty": "1", "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 0, "scripts": {}, "gaps": [{"allowFractions": true, "maxValue": "{b}", "variableReplacements": [], "correctAnswerFraction": true, "marks": 1, "type": "numberentry", "showCorrectAnswer": true, "minValue": "{b}", "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPrecisionHint": false}]}, {"type": "gapfill", "steps": [{"type": "information", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "The $x$-intercept is the value of $x$ when $y=0$, that is, the value of $x$ where the graph hits the $x$-axis. To find it, substitute $y=0$ into our equation:
\n\\[0=\\simplify[all,fractionNumbers]{{a}x+{b}} \\]
\n\nSolving this equation tells us that the $x$-intercept is $x=\\simplify[all, fractionNumbers]{{-b}/{a}}$.
"}], "prompt": "The set of $x$-intercepts of the graph would be [[0]].
\nNote: If there are no intercepts, enter set()
\nIf there is only one intercept, say $x=5$, enter set(5)
\nIf there are two intercepts, say $x=-2$ and $x=1.5$, enter set(-2,1.5)
\nIf there are three intercepts, say $x=-2$, $x=1.5$ and $x=5$, enter set(-2,1.5,5)
\n", "stepsPenalty": "1", "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 0, "scripts": {}, "gaps": [{"vsetrangepoints": 5, "answer": "{xints}", "variableReplacements": [], "vsetrange": [0, 1], "showCorrectAnswer": true, "checkingaccuracy": 0.001, "showpreview": true, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme", "expectedvariablenames": [], "marks": 1, "scripts": {}, "variableReplacementStrategy": "originalfirst"}]}, {"type": "gapfill", "steps": [{"type": "information", "variableReplacements": [], "marks": 0, "showCorrectAnswer": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "prompt": "A degree $n$ polynomial has at most $n-1$ bends in its graph.
"}], "prompt": "Given the degree of a polynomial is $1$, the maximum number of possible 'bends' or 'turns' in the graph is [[0]].
\n", "stepsPenalty": "1", "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "marks": 0, "scripts": {}, "gaps": [{"allowFractions": false, "maxValue": "0", "variableReplacements": [], "correctAnswerFraction": false, "marks": 1, "type": "numberentry", "showCorrectAnswer": true, "minValue": "0", "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPrecisionHint": false}]}], "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "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/"}]}