// Numbas version: exam_results_page_options {"name": "Embed geogebra with deployggb.js", "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", "a_def", "b", "b_def"], "name": "Embed geogebra with deployggb.js", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Either construct the intersection of two circles centred at $\\mathbf{a}$ and $\\mathbf{b}$, or use the Regular Polygon tool.

\n

Here's one way of doing it:

\n

{geogebra_applet('eG6ezhKk',[[\"A\",a_def],[\"B\",b_def]],[])}

", "rulesets": {}, "parts": [{"prompt": "

Construct an equilateral triangle with corners at the two given points, using the Polygon tool (it's not sufficient to create line segments between the corners).

\n

{geogebra_applet('HjFhq32N',[[\"A\",a_def],[\"B\",b_def]],[[\"Tool1\",\"p0g0\"]])}

\n

When your construction is complete, this part will be marked correct.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "extension"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": ["geogebra"], "statement": "

In this question, the position of point $\\mathbf{a}$ is picked randomly, and $\\mathbf{B}$ is 3 units to its left.

\n

$\\mathbf{a} = \\var{a}$

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "vector(random(3..5#0.25),random(1..2#0.25))", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "b_def": {"definition": "\"(\"+b[0]+\",\"+b[1]+\")\"", "templateType": "anything", "group": "Ungrouped variables", "name": "b_def", "description": ""}, "b": {"definition": "a-vector(3,0)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "a_def": {"definition": "\"(\"+a[0]+\",\"+a[1]+\")\"", "templateType": "anything", "group": "Ungrouped variables", "name": "a_def", "description": ""}}, "metadata": {"description": "

A sneak peek at a really clever integration of GeoGebra with Numbas.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "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/"}]}