// Numbas version: exam_results_page_options {"name": "Intervals - graphing (a,b)", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

Simple questions on interval notation. If you are not randomising the order of your questions please turn on randomise choices in these questions.

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

Which of the following best represents the interval $(\\var{a},\\var{b})$?

", "preamble": {"js": "", "css": ""}, "functions": {"closed": {"parameters": [], "language": "javascript", "type": "html", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('600px','100px',{boundingBox:[0.5,1,12.5,-1],grid:false,axis:false});\nvar board = div.board;\n\n//reordring layers\nJXG.Options.layer['circle'] = 7;\nJXG.Options.layer['line'] = 6;\n\n// create the x-axis.\nvar xaxis = board.create('line',[[0,0],[1,0]], { strokeColor: 'black', fixed: true});\nvar xticks = board.create('ticks',[xaxis,1],{\n drawLabels: true,\n label: {offset: [-4, -10]},\n minorTicks: 0,\n fixed:true\n});\n\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\n\n\n//board.create('point',[x0,y0],{fixed:true});\n//board.create('point',[x1,y1],{fixed:true});\nboard.create('line',[[a+0.2,0],[b-0.2,0]],{strokeColor:'#00ff00',strokeWidth:2,fixed:true,straightFirst:false, straightLast:false,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[a,0],[a+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fillColor:'#00ff00',fillOpacity:2,fixed:true,highlightStrokeColor:'#00ff00',highlightfillcolor:'#00ff00'});\nboard.createElement('circle',[[b,0],[b+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fillColor:'#00ff00',fillOpacity:2,fixed:true,highlightStrokeColor:'#00ff00',highlightfillcolor:'#00ff00'});\n\n\nreturn div;"}, "closedopen": {"parameters": [], "language": "javascript", "type": "html", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('600px','100px',{boundingBox:[0.5,1,12.5,-1],grid:false,axis:false});\nvar board = div.board;\n\n//reordring layers\nJXG.Options.layer['circle'] = 7;\nJXG.Options.layer['line'] = 6;\n\n// create the x-axis.\nvar xaxis = board.create('line',[[0,0],[1,0]], { strokeColor: 'black', fixed: true});\nvar xticks = board.create('ticks',[xaxis,1],{\n drawLabels: true,\n label: {offset: [-4, -10]},\n minorTicks: 0,\n fixed:true\n});\n\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\n\n\n//board.create('point',[x0,y0],{fixed:true});\n//board.create('point',[x1,y1],{fixed:true});\nboard.create('line',[[a+0.2,0],[b-0.2,0]],{strokeColor:'#00ff00',strokeWidth:2,fixed:true,straightFirst:false, straightLast:false,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[a,0],[a+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fillColor:'#00ff00',fillOpacity:2,fixed:true,highlightStrokeColor:'#00ff00',highlightfillcolor:'#00ff00'});\nboard.createElement('circle',[[b,0],[b+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fixed:true,highlightStrokeColor:'#00ff00'});\n\n\nreturn div;"}, "open": {"parameters": [], "language": "javascript", "type": "html", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('600px','100px',{boundingBox:[0.5,1,12.5,-1],grid:false,axis:false});\nvar board = div.board;\n\n\n//reordring layers\nJXG.Options.layer['circle'] = 7;\nJXG.Options.layer['line'] = 6;\n\n// create the x-axis.\nvar xaxis = board.create('line',[[0,0],[1,0]], { strokeColor: 'black', fixed: true});\nvar xticks = board.create('ticks',[xaxis,1],{\n drawLabels: true,\n label: {offset: [-4, -10]},\n minorTicks: 0,\n fixed:true\n});\n\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\n\n\n//board.create('point',[x0,y0],{fixed:true});\n//board.create('point',[x1,y1],{fixed:true});\nboard.create('line',[[a+0.2,0],[b-0.2,0]],{strokeColor:'#00ff00',strokeWidth:2,fixed:true,straightFirst:false, straightLast:false,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[a,0],[a+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fixed:true,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[b,0],[b+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fixed:true,highlightStrokeColor:'#00ff00'});\n\n\nreturn div;"}, "openclosed": {"parameters": [], "language": "javascript", "type": "html", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('600px','100px',{boundingBox:[0.5,1,12.5,-1],grid:false,axis:false});\nvar board = div.board;\n\n//reordring layers\nJXG.Options.layer['circle'] = 7;\nJXG.Options.layer['line'] = 6;\n\n// create the x-axis.\nvar xaxis = board.create('line',[[0,0],[1,0]], { strokeColor: 'black', fixed: true});\nvar xticks = board.create('ticks',[xaxis,1],{\n drawLabels: true,\n label: {offset: [-4, -10]},\n minorTicks: 0,\n fixed:true\n});\n\n\na = Numbas.jme.unwrapValue(scope.variables.a);\nb = Numbas.jme.unwrapValue(scope.variables.b);\n\n\n//board.create('point',[x0,y0],{fixed:true});\n//board.create('point',[x1,y1],{fixed:true});\nboard.create('line',[[a+0.2,0],[b-0.2,0]],{strokeColor:'#00ff00',strokeWidth:2,fixed:true,straightFirst:false, straightLast:false,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[a,0],[a+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fixed:true,highlightStrokeColor:'#00ff00'});\nboard.createElement('circle',[[b,0],[b+0.2,0]], {strokeColor:'#00ff00',strokeWidth:2, fillColor:'#00ff00',fillOpacity:2,fixed:true,highlightStrokeColor:'#00ff00',highlightfillcolor:'#00ff00'});\n\n\nreturn div;"}}, "tags": [], "name": "Intervals - graphing (a,b)", "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

The open (round) brackets in $(\\var{a},\\var{b})$ signify that those endpoints are not included in the interval (but all real numbers between them are included). This is known as the open interval $(\\var{a},\\var{b})$.

\n

\n

When we graph the interval, endpoints that are not included are represented by circles that are not filled in, whereas, endpoints that are included are represented by circles that are filled in.

", "parts": [{"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "choices": ["

{open()}

", "

{closed()}

", "

{openclosed()}

", "

{closedopen()}

"], "type": "1_n_2", "displayType": "radiogroup", "maxMarks": 0, "displayColumns": "1", "minMarks": 0, "variableReplacements": [], "distractors": ["", "", "", ""], "marks": 0, "matrix": ["1", "0", 0, 0], "shuffleChoices": false, "scripts": {}}], "extensions": ["jsxgraph"], "ungrouped_variables": ["a", "b", "delta"], "variable_groups": [], "variables": {"b": {"name": "b", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "a+delta"}, "delta": {"name": "delta", "description": "

delta

", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..5)"}, "a": {"name": "a", "description": "", "templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..7)"}}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}