// Numbas version: exam_results_page_options {"name": "Finding Derivative From a Graph, for W6 tute", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Finding Derivative From a Graph, for W6 tute", "tags": [], "metadata": {"description": "

A graph is drawn. A student is to identify the derivative of this graph from four other graphs.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

This is a non-calculator question

1) This is identical to being asked: \"A displacement-time graph is given, select the corresponding velocity-time graph\".  Hence use the same reasoning as in previous questions (when is the velocity positive, negative, zero.)

\n

", "rulesets": {}, "extensions": ["jsxgraph"], "variables": {"answer": {"name": "answer", "group": "Ungrouped variables", "definition": "mod((n+1),4)", "description": "", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "answer"], "variable_groups": [], "functions": {"plot": {"parameters": [["n", "number"]], "type": "html", "language": "javascript", "definition": "// This function creates the board and sets it up, then returns an\n// HTML div tag containing the board.\n\n//Put in your values of x here\n\nvar x_min = -4;\nvar x_max = 4;\nvar y_min = -1.3;\nvar y_max = 1.3;\n\nn=n%4;\n\n// First, make the JSXGraph board.\n// The function provided by the JSXGraph extension wraps the board up in \n// a div tag so that it's easier to embed in the page.\nvar div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',\n//{boundingBox: [-8,10,8,-10],\n {boundingBox: [x_min,y_max,x_max,y_min], \n axis: false,\n showNavigation: false,\n grid: true\n});\n\n\n\n\n// div.board is the object created by JSXGraph, which you use to \n// manipulate elements\nvar board = div.board; \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});\n\n// create the y-axis\nvar yaxis = board.create('line',[[0,0],[0,1]], { strokeColor: 'black', fixed: true });\nvar yticks = board.create('ticks',[yaxis,1],{\ndrawLabels: true,\nlabel: {offset: [-20, 0]},\nminorTicks: 0\n});\n\n\n // PUT YOUR FUNCTION HERE\n\n\n\nif(n==1)\n board.create('functiongraph',[function(x){ return Math.cos(x);},x_min,x_max]);\nelse if (n==2)\n board.create('functiongraph',[function(x){ return -Math.sin(x);},x_min,x_max]);\nelse if (n==3)\n board.create('functiongraph',[function(x){ return -Math.cos(x);},x_min,x_max]);\nelse if (n==0)\n board.create('functiongraph',[function(x){ return Math.sin(x);},x_min,x_max]);\n\nreturn div;"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": true, "customName": "Part 1", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

{plot({n})}

\n

Select the graph that shows the derivative of the graph above.

\n

", "minMarks": 0, "maxMarks": "2", "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

{plot({n+1})}

", "

{plot({n})}

", "

{plot({n+2})}

", "

{plot({n+3})}

"], "matrix": ["0.5", "0", 0, 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}, {"name": "Yuri Anissimov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1705/"}, {"name": "Joshua Calcutt", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3267/"}]}]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}, {"name": "Yuri Anissimov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1705/"}, {"name": "Joshua Calcutt", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3267/"}]}