// Numbas version: exam_results_page_options {"name": "Josh's copy of Trig transformation - simple geogebra", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "abs(a)+abs(d)<5", "maxRuns": "200"}, "tags": [], "extensions": ["geogebra"], "ungrouped_variables": ["a", "b", "defs", "c", "d"], "rulesets": {}, "statement": "

The graph shows a sine curve.

\n

{geogebra_applet('https://ggbm.at/GqxVC76x', defs, [])}

\n

", "variable_groups": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

This uses an embedded Geogebra graph of a sine curve $y=a\\sin (bx+c)+d$  with random coefficients set by NUMBAS.

"}, "advice": "", "functions": {"graph": {"type": "html", "language": "jme", "definition": "geogebra_applet('https://ggbm.at/aXxv2ECN', defs, [])", "parameters": []}}, "name": "Josh's copy of Trig transformation - simple geogebra", "type": "question", "preamble": {"css": "", "js": ""}, "parts": [{"prompt": "

What is the equation of this curve?

", "distractors": ["", "", "", "", "", ""], "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "maxMarks": 0, "marks": 0, "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "matrix": ["2", 0, 0, 0, 0, 0], "minMarks": 0, "displayColumns": "1", "shuffleChoices": true, "choices": ["

$y=\\simplify[unitFactor,fractionNumbers]{{a} sin({b}x+{c})+{d}}$

", "

$y=\\simplify[unitFactor,fractionNumbers]{{a} sin({1/b}x+{c})+{d}}$

", "

$y=\\simplify[unitFactor,fractionNumbers]{-{a} sin({b}x+{c})+{d}}$

", "

$y=\\simplify[unitFactor,fractionNumbers]{{2a} sin({b}x-{c})+{d}}$

", "

$y=\\simplify[unitFactor,fractionNumbers]{{a+1} sin({b}x-{c})+{2*d}}$

", "

$y=\\simplify[unitFactor,fractionNumbers]{{a} sin({2*b}x+{c})+{d}}$

"], "showFeedbackIcon": false, "displayType": "radiogroup"}], "variables": {"b": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1/2,2/3,1,2,3,4)", "description": "", "name": "b"}, "c": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-90,-60,-45,30,30,45,60,90)", "description": "", "name": "c"}, "defs": {"group": "Ungrouped variables", "templateType": "anything", "definition": "[\n ['a',a],\n ['b',b],\n ['c',c],\n ['d',d]\n]", "description": "", "name": "defs"}, "d": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-3..3 except 0)", "description": "", "name": "d"}, "a": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(-5..5 except -1..1)", "description": "", "name": "a"}}, "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}, {"name": "Josh Lim", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2990/"}]}]}], "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}, {"name": "Josh Lim", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2990/"}]}