// Numbas version: exam_results_page_options {"name": "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

", "variable_groups": [], "extensions": ["geogebra"], "functions": {"graph": {"type": "html", "language": "jme", "definition": "geogebra_applet('https://ggbm.at/aXxv2ECN', defs, [])", "parameters": []}}, "variablesTest": {"condition": "abs(a)+abs(d)<5", "maxRuns": "200"}, "tags": [], "rulesets": {}, "ungrouped_variables": ["a", "b", "defs", "c", "d"], "advice": "", "metadata": {"description": "

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

", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Trig transformation (1)", "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "random(-3..3 except 0)", "templateType": "anything", "description": ""}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(-5..5 except -1..1)", "templateType": "anything", "description": ""}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "[\n ['a',a],\n ['b',b],\n ['c',c],\n ['d',d]\n]", "templateType": "anything", "description": ""}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(-90,-60,-45,30,30,45,60,90)", "templateType": "anything", "description": ""}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1/2,2/3,1,2,3,4)", "templateType": "anything", "description": ""}}, "preamble": {"css": "", "js": ""}, "parts": [{"variableReplacements": [], "showCorrectAnswer": true, "prompt": "

What is the equation of this curve?

", "distractors": ["", "", "", "", "", ""], "scripts": {}, "maxMarks": 0, "marks": 0, "type": "1_n_2", "variableReplacementStrategy": "originalfirst", "matrix": ["2", 0, 0, 0, 0, 0], "minMarks": 0, "displayType": "radiogroup", "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}}$

"], "displayColumns": "1", "showFeedbackIcon": false}], "type": "question", "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}]}]}], "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}]}