// Numbas version: finer_feedback_settings {"name": "Graph a line", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Graph a line", "tags": [], "metadata": {"description": "

Students are given a line equation in the form y=mx+b and asked to graph it.

\n

m and b are randomised.

\n

The question is not auto-marked, students need to \"reveal answers\" to see a sample graph that they can compare to their own.

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

Construct a table of values and use it to draw a graph of the equation $y = \\var{dispm}x  \\var{dispb}$.

", "advice": "

Your graph should look similar to this {geogebra_applet('https://www.geogebra.org/m/wxv4ykqj',defs)}

\n

Your graph needs:

\n\n

You may have chosen different scales for your axes. This is fine.

", "rulesets": {}, "extensions": ["geogebra"], "variables": {"m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-2,-1,-0.5,0.5,1,2)", "description": "

gradient

", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(-5..5)", "description": "

y-intercept

", "templateType": "anything"}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "[\n ['a',m],['b',b],['xmin',-5],['xmax',5],['ymin',ymin],['ymax',ymax]\n ]", "description": "

geogebra variables

", "templateType": "anything"}, "ymin": {"name": "ymin", "group": "Ungrouped variables", "definition": "b - max(m*(-5),m*5) - 2", "description": "

minimum y-axis value

", "templateType": "anything"}, "ymax": {"name": "ymax", "group": "Ungrouped variables", "definition": "b + max(m*(-5),m*5) + 2", "description": "

maximum y-axis value

", "templateType": "anything"}, "dispb": {"name": "dispb", "group": "Ungrouped variables", "definition": "if(b=0,'',if (b>0,'$+\\\\var{b}$','$\\\\var{b}$'))", "description": "", "templateType": "anything"}, "dispm": {"name": "dispm", "group": "Ungrouped variables", "definition": "if(m=1,\"\",if(m=-1,\"$-$\",\"$\\\\var{m}$\"))", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["m", "b", "defs", "ymin", "ymax", "dispb", "dispm"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "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": "

Once you have drawn your graph, click on \"Reveal answers\" to check your work.

"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "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/"}]}