// Numbas version: exam_results_page_options {"name": "Link a JSXGraph diagram to part inputs", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Link a JSXGraph diagram to part inputs", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "
{diagram}
", "advice": "", "rulesets": {}, "extensions": ["jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"diagram": {"name": "diagram", "group": "Ungrouped variables", "definition": "jessiecode(400,400,\"\"\"\n\n A = point(0,0) <Make the circle touch the point $P = \\var[rowvector]{p}$. The circle's centre must be in the top-right quadrant of the graph.
\nYou can change its radius and the position of its centre.
\nRadius: [[0]]
\nCoordinates of the centre: [[1]]
", "stepsPenalty": 0, "steps": [{"type": "m_n_2", "useCustomName": true, "customName": "Show a hint", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "jxg_input:\n [\n jxg_show(diagram[\"guide\"], studentAnswer[0][0])\n ]", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "If you tick the box below, a circle with radius 1 centred on $P$ will be shown.
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Show the guide circle"], "matrix": [0], "distractors": [""]}], "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Radius", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "jxg_input:\n [\n jxg_set(diagram[\"C\"],\"Radius\",studentNumber)\n ]", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "1", "maxValue": "1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "matrix", "useCustomName": true, "customName": "Coordinates of the centre", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "jxg_input:\n [ jxg_set_position(diagram[\"A\"],studentMatrix[0]) ]\n\njxg_output:\n let([x,y],jxg_position(diagram[\"A\"]),\n [[string(x),string(y)]]\n )", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "correctAnswer": "transpose(vector(0,0))", "correctAnswerFractions": false, "numRows": 1, "numColumns": "2", "allowResize": false, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}