// Numbas version: finer_feedback_settings {"name": "A randomised line in a GeoGebra worksheet - construct the definition of the line manually", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "ungrouped_variables": ["a", "b"], "statement": "
$a = \\var{a}$
\n$b = \\var{b}$
\n{geogebra_applet('FWcT6XxH',[ ['f','Line[('+a[0]+','+a[1]+'),('+b[0]+','+b[1]+')]'] ])}
", "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "type": "question", "parts": [], "variable_groups": [], "metadata": {"description": "Construct a line in a GeoGebra worksheet by writing its definition string by hand.
\nThis isn't a very neat way of doing this. It's easier to define two points in GeoGebra, then make a line through those points. You can set the positions of the points from Numbas using vectors.
", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"css": "", "js": ""}, "name": "A randomised line in a GeoGebra worksheet - construct the definition of the line manually", "variables": {"a": {"name": "a", "description": "", "group": "Ungrouped variables", "definition": "vector( random(-3..3), random(-3..3) )", "templateType": "anything"}, "b": {"name": "b", "description": "", "group": "Ungrouped variables", "definition": "vector( random(-3..3), random(-3..3) )", "templateType": "anything"}}, "advice": "", "extensions": ["geogebra"], "functions": {}, "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/"}]}