// Numbas version: exam_results_page_options {"name": "Saw Tooth Fourier Series Attempt 2", "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"], "preamble": {"css": "table#values th {\n background: none;\n text-align: center;\n}", "js": "function dragpoint_board() {\n var scope = question.scope;\n\n JXG.Options.text.display = 'internal';\n \n var yo0 = scope.variables.yo0.value;\n var yo1 = scope.variables.yo1.value;\n \n var div = Numbas.extensions.jsxgraph.makeBoard('400px','400px',{boundingBox:[-12,12,12,-2], axis:true, grid:false, title:{\n text: \"\"}});\n \n $(question.display.html).find('#dragpoint').append(div);\n \n var board = div.board;\n \n var parabool1 = board.create('line',[[x1=-yo0/2,y1=0], [x2=0,y2=yo1]],{straightFirst:false, straightLast:false,strokeWidth:1,strokeColor:'blue'});\n var parabool2 = board.create('line',[[x1=0,y1=yo1], [x2=yo0/2,y2=0]],{straightFirst:false, straightLast:false,strokeWidth:1,strokeColor:'blue'});\n \n}\n\nquestion.signals.on('HTMLAttached',function() {\n dragpoint_board();\n});"}, "functions": {}, "advice": "", "statement": "", "parts": [{"notationStyles": ["plain", "en", "si-en"], "marks": 1, "correctAnswerFraction": false, "mustBeReducedPC": 0, "mustBeReduced": false, "showFeedbackIcon": true, "scripts": {}, "prompt": "

What is 1 + 1?

", "maxValue": "1", "allowFractions": false, "minValue": "1", "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "type": "numberentry", "variableReplacements": [], "showCorrectAnswer": true}], "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": ["jsxgraph"], "rulesets": {"std": ["all", "fractionNumbers"]}, "name": "Saw Tooth Fourier Series Attempt 2", "tags": [], "metadata": {"description": "

Widget Sales

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variables": {"yo0": {"description": "", "definition": "random(5..12#1)", "group": "Ungrouped variables", "templateType": "anything", "name": "yo0"}, "yo1": {"description": "", "definition": "random(5..12#1 except yo0)", "group": "Ungrouped variables", "templateType": "anything", "name": "yo1"}}, "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/"}]}