// Numbas version: exam_results_page_options {"name": "Nuala's copy of 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": [{"functions": {}, "ungrouped_variables": ["a", "b", "defs"], "name": "Nuala's copy of Numbas demo: Create an equilateral triangle in GeoGebra", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "

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

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": "3", "scripts": {}, "steps": [{"prompt": "

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

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

Put a point at the intersection of the two circles.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "extension"}], "type": "extension"}], "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.

\n

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "vector(\n random(-2..2),\n random(1..3)\n)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "defs": {"definition": "[\n ['A',a],\n ['B',b]\n]", "templateType": "anything", "group": "Ungrouped variables", "name": "defs", "description": ""}, "b": {"definition": "random(map(vector(x,y),[x,y],product(list(-2..2),list(-1..1))) except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}}, "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"}, "type": "question", "contributors": [{"name": "Nuala Curley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1252/"}]}]}], "contributors": [{"name": "Nuala Curley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1252/"}]}