// Numbas version: exam_results_page_options {"name": "Gareth's copy of Plot Graph", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["yo0", "yo1", "yo2", "yo3", "yo4", "maxy", "maxx"], "preamble": {"css": "table#values th {\n background: none;\n text-align: center;\n}", "js": "function dragpoint_board() {\n var scope = question.scope;\n\n var yo0 = scope.variables.yo0.value;\n var yo1 = scope.variables.yo1.value;\n var yo2 = scope.variables.yo2.value;\n var yo3 = scope.variables.yo3.value; \n var yo4 = scope.variables.yo4.value;\n \n var maxx = scope.variables.maxx.value;\n var maxy = scope.variables.maxy.value;\n \n var div = Numbas.extensions.jsxgraph.makeBoard('500px','500px',{boundingBox:[-2,maxy,6,-2],grid:true});\n $(question.display.html).find('#dragpoint').append(div);\n \n var board = div.board;\n \n //create stationary points\n \n var op0 = board.create('point',[1,yo0],{name:'January',fixed:true,size:2,color:'black'});\n var op1 = board.create('point',[2,yo1],{name:'February',fixed:true,size:2,color:'black'});\n var op2 = board.create('point',[3,yo2],{name:'March',fixed:true,size:2,color:'black'});\n var op3 = board.create('point',[4,yo3],{name:'April',fixed:true,size:2,color:'black'});\n var op4 = board.create('point',[5,yo4],{name:'May',fixed:true,size:2,color:'black'});\n \n // create the parabola\n var parabool1 = board.create('lines',[[x1=1,y1=yo0], [x2=2,y2=yo1]],{strokeWidth:1,strokeColor:'green'});\n // var parabool2 = board.create('line',[[2,yo1], [3,yo2]],{strokeWidth:1,strokeColor:'green'});\n // var parabool3 = board.create('line',[[3,yo2], [4,yo3]],{strokeWidth:1,strokeColor:'green'});\n // var parabool4 = board.create('line',[[4,yo3], [5,yo4]],{strokeWidth:1,strokeColor:'green'});\n \n // var parabool5 = board.create.lineto{[[x1=1,y1=yo0], [x2=2,y2=yo1]],{strokeWidth:1,strokeColor:'green'}};\n \n}\n\nquestion.signals.on('HTMLAttached',function() {\n dragpoint_board();\n});"}, "name": "Gareth's copy of Plot Graph", "tags": [], "variables": {"yo0": {"definition": "random(5..12#0.1)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "yo0"}, "maxx": {"definition": "6", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "maxx"}, "yo1": {"definition": "random(5..12#0.1 except yo0)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "yo1"}, "yo2": {"definition": "random(5..12#0.1 except yo0 except yo1)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "yo2"}, "yo3": {"definition": "random(5..12#0.1 except yo0 except yo1 except yo2)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "yo3"}, "yo4": {"definition": "random(5..12#0.1 except yo0 except yo1 except yo2 except yo3)", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "yo4"}, "maxy": {"definition": "14", "templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "maxy"}}, "statement": "", "advice": "", "rulesets": {"std": ["all", "fractionNumbers"]}, "extensions": ["jsxgraph"], "parts": [{"type": "gapfill", "showFeedbackIcon": true, "steps": [{"type": "information", "showFeedbackIcon": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "

$y=\\simplify[fractionNumbers,all]{{vsc}f({hsc}x+{hsh})+{vsh}}$ means that the new graph will be the old graph except the $y$ value of each point on the graph will be $\\var{vsc}$ times what they were before.  half of what they were before. a negative half of what they were before. the negative of what it was before. Since the $y$ value is displayed in the vertical direction, this means the old graph is stretched or scaled vertically by a factor of $\\var{vsc}$ to give the new graph. 

", "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}}], "marks": 0, "variableReplacementStrategy": "originalfirst", "prompt": "
\n

", "gaps": [{"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "xn[0]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "xn[0]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "yn[0]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "yn[0]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "xn[1]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "xn[1]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "yn[1]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "yn[1]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "xn[2]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "xn[2]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "yn[2]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "yn[2]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "xn[3]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "xn[3]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "yn[3]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "yn[3]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "xn[4]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "xn[4]", "correctAnswerStyle": "plain", "variableReplacements": []}, {"showFeedbackIcon": true, "scripts": {}, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "type": "numberentry", "correctAnswerFraction": false, "maxValue": "yn[4]", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "minValue": "yn[4]", "correctAnswerStyle": "plain", "variableReplacements": []}], "stepsPenalty": "10", "variableReplacements": [], "showCorrectAnswer": true, "scripts": {}}], "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

of a random cubic spline

"}, "variable_groups": [], "functions": {}, "type": "question", "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}]}]}], "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}]}