// Numbas version: exam_results_page_options {"name": "Numbas demo: Create an equilateral triangle in GeoGebra", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "defs"], "name": "Numbas demo: Create an equilateral triangle in GeoGebra", "rulesets": {}, "advice": "", "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"js": "", "css": ""}, "functions": {}, "metadata": {"description": "

An example of using the GeoGebra extension to ask the student to create a geometric construction, with marking and steps.

", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"b": {"description": "", "group": "Ungrouped variables", "name": "b", "templateType": "anything", "definition": "random(map(vector(x,y),[x,y],product(list(-2..2),list(-1..1))) except a)"}, "defs": {"description": "", "group": "Ungrouped variables", "name": "defs", "templateType": "anything", "definition": "[\n ['A',a],\n ['B',b]\n]"}, "a": {"description": "", "group": "Ungrouped variables", "name": "a", "templateType": "anything", "definition": "vector(\n random(-2..2),\n random(1..3)\n)"}}, "type": "question", "extensions": ["geogebra"], "statement": "

Numbas can use GeoGebra to mark a student's geometric construction. In this question, the part is marked correct once the student has constructed an equilateral triangle. The student can achieve this by any means - simple compass and ruler operations, or with the \"Regular polygon\" tool.

", "tags": [], "parts": [{"scripts": {}, "variableReplacementStrategy": "originalfirst", "steps": [{"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "prompt": "

Draw a circle centred at $A$ passing through $B$, and a circle centred at $B$ passing through $A$.

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "extension", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "unitTests": []}, {"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "prompt": "

Put a point at the intersection of the two circles.

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "extension", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "unitTests": []}], "type": "extension", "showCorrectAnswer": true, "variableReplacements": [], "prompt": "

{geogebra_applet('https://beta.geogebra.org/m/gEWtutTS',defs, [ ['Triangle','p0'], ['Circles','p0s0'], ['Intersection','p0s1'] ])}

\n

Create an equilateral triangle with $A$ and $B$ as vertices.

", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "stepsPenalty": 0, "marks": "3", "unitTests": []}], "variable_groups": [], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}