// Numbas version: finer_feedback_settings {"name": "Straight lines", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {"inter": {"definition": " var miny = Numbas.jme.unwrapValue(scope.variables.miny);\n var maxy = Numbas.jme.unwrapValue(scope.variables.maxy);\n var minx = Numbas.jme.unwrapValue(scope.variables.minx);\n var maxx = Numbas.jme.unwrapValue(scope.variables.maxx);\n var div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',\n {boundingBox:[minx,maxy,maxx,miny],\n axis:true,\n showNavigation:false,\n grid:true});\n var brd = div.board; \n var li1=brd.create('line',[[0,-1],[4,5]],{fixed:true,name:'Line P',withLabel:true});\n var li2=brd.create('line',[[0,-2],[4,4]],{fixed:true,name:'Line R',withLabel:true});\n var pt1=brd.create('point',[3,4],{visible:true,withLabel:false}); \n return div;\n ", "type": "html", "language": "javascript", "parameters": []}}, "ungrouped_variables": [], "name": "Straight lines", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [], "extensions": ["jsxgraph"], "statement": "

{inter()}

\n

Here are some lines.

\n

\n

", "variable_groups": [{"variables": ["minx", "maxx", "miny", "maxy"], "name": "graph_limits"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"minx": {"definition": "-1", "templateType": "anything", "group": "graph_limits", "name": "minx", "description": ""}, "miny": {"definition": "-2", "templateType": "anything", "group": "graph_limits", "name": "miny", "description": ""}, "maxx": {"definition": "4", "templateType": "anything", "group": "graph_limits", "name": "maxx", "description": ""}, "maxy": {"definition": "5", "templateType": "anything", "group": "graph_limits", "name": "maxy", "description": ""}}, "metadata": {"description": "

Reading information from the equation of the line. Graph shown

\n

Rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}]}]}], "contributors": [{"name": "Richard Miles", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/882/"}]}