// Numbas version: exam_results_page_options {"name": "Algebra: trig, graphs, solving equations", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "tags": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

A function of the form f(x)= sin(ax+b) is given and plotted. A few points are plotted on the curve. \$x\$-coordinates are provided for two of them and \$y\$-coordinate provided for third. Student is required to determine other coordinates.

"}, "variable_groups": [{"variables": ["a", "b", "x0", "f0", "x1", "f1", "x2", "f2"], "name": "part a"}], "name": "Algebra: trig, graphs, solving equations", "ungrouped_variables": [], "extensions": ["jsxgraph"], "variables": {"f0": {"templateType": "anything", "name": "f0", "definition": "siground(sin(b*x0-a),3)", "description": "", "group": "part a"}, "b": {"templateType": "anything", "name": "b", "definition": "random(1.5..3#0.25 except 1)", "description": "", "group": "part a"}, "f2": {"templateType": "anything", "name": "f2", "definition": "0", "description": "", "group": "part a"}, "x2": {"templateType": "anything", "name": "x2", "definition": "siground(random(2..4)*pi/b+a/b,3)", "description": "", "group": "part a"}, "a": {"templateType": "anything", "name": "a", "definition": "random(-3..3 except 0)", "description": "", "group": "part a"}, "f1": {"templateType": "anything", "name": "f1", "definition": "siground(sin(b*x1-a),3)", "description": "", "group": "part a"}, "x1": {"templateType": "anything", "name": "x1", "definition": "random(-1..-3#0.1)", "description": "", "group": "part a"}, "x0": {"templateType": "anything", "name": "x0", "definition": "random(1..3#0.1)", "description": "", "group": "part a"}}, "preamble": {"css": "", "js": ""}, "functions": {"plot": {"type": "html", "language": "javascript", "definition": "// This functions plots a cubic with a certain number of\n// stationary points and roots.\n// It creates the board, sets it up, then returns an\n// HTML div tag containing the board.\n\n\n// Max and min x and y values for the axis.\nvar x_min = -5;\nvar x_max = 10;\nvar y_min = -1.5;\nvar y_max = 1.5;\n\n\n// First, make the JSXGraph board.\nvar div = Numbas.extensions.jsxgraph.makeBoard(\n '500px',\n '600px',\n {\n boundingBox: [x_min,y_max,x_max,y_min],\n axis: false,\n showNavigation: false,\n grid: false,\n axis:false,\n }\n);\n\n\n\n// div.board is the object created by JSXGraph, which you use to \n// manipulate elements\nvar board = div.board; \n\n// create the x-axis and y-axis\nvar xaxis = board.create('axis',[[0,0],[1,0]], { strokeColor: 'black', fixed: true});\n//var xticks = board.create('ticks',[xaxis,1],{\n// drawLabels: true,\n// label: {offset: [-8, -10]},\n// minorTicks: 0\n//});\n\n// create the y-axis\nvar yaxis = board.create('axis',[[0,0],[0,1]], { strokeColor: 'black', fixed: true });\n//var yticks = board.create('ticks',[yaxis,1],{\n// drawLabels: true,\n// label: {offset: [-8, 0]},\n// minorTicks: 0\n//});\n\n\n\n// Plot the function.\n board.create('functiongraph',\n [function(x){ return Math.sin(x*b-a)},x_min,x_max]);\n\n// Plot coordinates.\n board.create('ellipse',[[x0+0.098,y0],[x0-0.098,y0],[x0+0.1,y0]],{color:'red'});\n board.create('text',[x0,y0+0.1,'A']);\n board.create('ellipse',[[x1+0.098,y1],[x1-0.098,y1],[x1+0.1,y1]],{color:'red'});\n board.create('text',[x1,y1+0.1,'B']);\n board.create('ellipse',[[x2+0.098,y2],[x2-0.098,y2],[x2+0.1,y2]],{color:'red'});\n board.create('text',[x2,y2+0.1,'C']);\n\nreturn div;", "parameters": [["a", "number"], ["b", "number"], ["c", "number"], ["x0", "number"], ["y0", "number"], ["x1", "number"], ["y1", "number"], ["x2", "number"], ["y2", "number"]]}}, "advice": "

See Lecture 6.1 for information about sin.  See Week 4 for information about functions and their graphs.

\n

Remember to check that your answer makes sense. You can approximate the coordinates of \$A,B\$ and \$C\$ by looking at the graph. To get exact coordinates, you need to do some calculations.

This is the graph of the function \$f(t) = \\simplify{sin({b}t-{a})}\$.

\n

{plot(a,b,0,x0, f0, x1, f1, x2, f2)}

\n

\n

The \$x\$-coordinate of \$A\$ is \$\\var{x0}\$ and of \$B\$ is \$\\var{x1}\$. The \$y\$-coordinate of \$C\$ is \$0\$.

\n

\n

Determine the coordinates of \$A,B\$ and \$C\$. Give your answer to 3 s.f..

\n

\n

Coordinates of A: [[0]]

\n

Of B: [[1]]

\n

Of C: [[2]]

\n

", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "customMarkingAlgorithm": "", "marks": 0}], "statement": "

This is a calculator question.

", "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}]}], "contributors": [{"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}