// Numbas version: exam_results_page_options {"name": "JD's copy of Simple Harmonic Motion Graph", "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 the displacement, $x$ metres, of a particle at time $t$ seconds, moving with simple harmonic motion about a fixed origin.

\n

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

\n

(You can use the tools to zoom in/out and pan around the graph if necessary!)

", "variablesTest": {"maxRuns": "200", "condition": ""}, "extensions": ["geogebra"], "rulesets": {}, "ungrouped_variables": ["defs", "a", "w", "c", "P", "d", "f"], "variables": {"defs": {"definition": "[\n ['a',a],\n ['b',w],\n ['c',f],\n ['d',d]\n]", "description": "

Sets the internal values of y = a*cos(wx+c)+d

", "name": "defs", "templateType": "anything", "group": "Ungrouped variables"}, "f": {"definition": "c*pi/(2w)", "description": "", "name": "f", "templateType": "anything", "group": "Ungrouped variables"}, "a": {"definition": "random(1..8#0.2)", "description": "", "name": "a", "templateType": "anything", "group": "Ungrouped variables"}, "w": {"definition": "2*pi/P", "description": "", "name": "w", "templateType": "anything", "group": "Ungrouped variables"}, "c": {"definition": "1.5", "description": "", "name": "c", "templateType": "anything", "group": "Ungrouped variables"}, "d": {"definition": "0", "description": "", "name": "d", "templateType": "anything", "group": "Ungrouped variables"}, "P": {"definition": "random(1..6)", "description": "", "name": "P", "templateType": "anything", "group": "Ungrouped variables"}}, "advice": "

(a) Amplitude: measure the height of the peak from the middle of the wave ($x=0$ line).

\n

(b) Period: measure the horizontal distance from one peak to the next.  The period, in seconds, is the time taken for the particle is undergo one oscillation.

\n

(c) Angular frequency, $\\omega$, is defined as \\[ \\omega = \\frac{2\\pi}{P} \\] where $P$ is the period of oscillation.

", "variable_groups": [], "name": "JD's copy of Simple Harmonic Motion Graph", "metadata": {"description": "

This uses an embedded Geogebra SHM graph with coefficients set by NUMBAS.

", "licence": "Creative Commons Attribution 4.0 International"}, "tags": [], "functions": {"graph": {"parameters": [], "definition": "", "type": "html", "language": "jme"}}, "parts": [{"variableReplacements": [], "customName": "", "sortAnswers": false, "unitTests": [], "scripts": {}, "useCustomName": false, "prompt": "

What is the amplitude of the displacement?

\n

Amplitude:  [[0]] metres

", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showCorrectAnswer": true, "gaps": [{"minValue": "{a}", "showFractionHint": true, "maxValue": "{a}", "variableReplacements": [], "customName": "", "notationStyles": ["plain", "en", "si-en"], "allowFractions": true, "correctAnswerStyle": "plain", "unitTests": [], "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "mustBeReduced": false, "useCustomName": false, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "type": "numberentry", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 1}], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": false, "marks": 0}, {"variableReplacements": [], "customName": "", "sortAnswers": false, "unitTests": [], "scripts": {}, "useCustomName": false, "prompt": "

What is the period of oscillation for the particle?

\n

Period = [[0]] seconds

", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showCorrectAnswer": true, "gaps": [{"minValue": "P", "showFractionHint": true, "maxValue": "P", "variableReplacements": [], "customName": "", "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "correctAnswerStyle": "plain", "unitTests": [], "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false, "mustBeReduced": false, "useCustomName": false, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "type": "numberentry", "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 1}], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0}, {"variableReplacements": [], "customName": "", "sortAnswers": false, "unitTests": [], "scripts": {}, "useCustomName": false, "prompt": "

What is the angular frequency for this system?

\n

Angular frequency = [[0]]  rad/s  (Exact value!)

", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "type": "gapfill", "showCorrectAnswer": true, "gaps": [{"customName": "", "failureRate": 1, "unitTests": [], "vsetRangePoints": 5, "checkingType": "absdiff", "useCustomName": false, "answer": "2pi/{P}", "customMarkingAlgorithm": "", "answerSimplification": "all", "showPreview": true, "showCorrectAnswer": true, "vsetRange": [0, 1], "variableReplacements": [], "marks": 1, "variableReplacementStrategy": "originalfirst", "scripts": {}, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "type": "jme", "checkVariableNames": false, "showFeedbackIcon": true, "valuegenerators": []}], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "marks": 0}], "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}, {"name": "JD Ichwan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3389/"}]}]}], "contributors": [{"name": "Adrian Jannetta", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/164/"}, {"name": "JD Ichwan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3389/"}]}