// Numbas version: exam_results_page_options {"name": "Michael's copy of Trig transformation (1)", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

The graph shows a sine curve.

\n

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

\n

", "type": "question", "advice": "", "ungrouped_variables": ["a", "b", "defs", "c", "d"], "extensions": ["geogebra"], "name": "Michael's copy of Trig transformation (1)", "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.

"}, "variablesTest": {"maxRuns": "200", "condition": "abs(a)+abs(d)<5"}, "tags": [], "rulesets": {}, "functions": {"graph": {"definition": "geogebra_applet('https://ggbm.at/aXxv2ECN', defs, [])", "type": "html", "parameters": [], "language": "jme"}}, "variables": {"defs": {"definition": "[\n ['a',a],\n ['b',b],\n ['c',c],\n ['d',d]\n]", "group": "Ungrouped variables", "templateType": "anything", "name": "defs", "description": ""}, "d": {"definition": "random(-3..3 except 0)", "group": "Ungrouped variables", "templateType": "anything", "name": "d", "description": ""}, "b": {"definition": "random(1/2,2/3,1,2,3,4)", "group": "Ungrouped variables", "templateType": "anything", "name": "b", "description": ""}, "a": {"definition": "random(-5..5 except -1..1)", "group": "Ungrouped variables", "templateType": "anything", "name": "a", "description": ""}, "c": {"definition": "random(-90,-60,-45,30,30,45,60,90)", "group": "Ungrouped variables", "templateType": "anything", "name": "c", "description": ""}}, "preamble": {"css": "", "js": ""}, "parts": [{"variableReplacementStrategy": "originalfirst", "prompt": "

What is the equation of this curve?

", "shuffleChoices": true, "variableReplacements": [], "marks": 0, "type": "1_n_2", "matrix": ["2", 0, 0, 0, 0, 0], "showCorrectAnswer": true, "maxMarks": 0, "distractors": ["", "", "", "", "", ""], "showFeedbackIcon": false, "scripts": {}, "displayType": "radiogroup", "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}}$

"], "displayColumns": "1", "minMarks": 0}], "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}]}]}], "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}, {"name": "Michael Proudman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/269/"}]}