// Numbas version: exam_results_page_options {"name": "Algebra: solving equations graphically. Version 2", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "sortAnswers": false, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "unitTests": [], "type": "gapfill", "marks": 0, "gaps": [{"extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "allowFractions": false, "scripts": {}, "variableReplacementStrategy": "originalfirst", "unitTests": [], "showCorrectAnswer": true, "variableReplacements": [], "mustBeReducedPC": 0, "minValue": "gy[0]", "type": "numberentry", "marks": "1", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReduced": false, "showFeedbackIcon": true, "maxValue": "gy[0]", "correctAnswerFraction": false}, {"extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "allowFractions": false, "scripts": {}, "variableReplacementStrategy": "originalfirst", "unitTests": [], "showCorrectAnswer": true, "variableReplacements": [], "mustBeReducedPC": 0, "minValue": "gy[1]", "type": "numberentry", "marks": "1", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReduced": false, "showFeedbackIcon": true, "maxValue": "gy[1]", "correctAnswerFraction": false}, {"extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "allowFractions": false, "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswer": "matrix([ymin[2],ymax[2]])", "showCorrectAnswer": true, "variableReplacements": [], "allowResize": true, "unitTests": [], "type": "matrix", "marks": 1, "numRows": 1, "markPerCell": false, "tolerance": 0, "showFeedbackIcon": true, "numColumns": "1", "correctAnswerFractions": false}, {"extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "allowFractions": false, "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswer": "matrix([ymin[3]])", "showCorrectAnswer": true, "variableReplacements": [], "allowResize": true, "unitTests": [], "type": "matrix", "marks": 1, "numRows": 1, "markPerCell": false, "tolerance": 0, "showFeedbackIcon": true, "numColumns": "1", "correctAnswerFractions": false}], "showFeedbackIcon": true, "prompt": "

\n

Below is the graph of a function $f(x)$.

\n

{eqnline(add2,sub2)}

\n

\n

What is $f(\\var{ymax[0]})$? [[0]]

\n

What is  $f(\\var{ymin[1]})$? [[1]]

\n

Solve the equation $f(x)=\\var{gy[2]}$?

\n

[[2]]

\n

\n

Solve $f(x) = \\var{gy[3]}$?

\n

[[3]]

\n

"}], "ungrouped_variables": [], "extensions": ["jsxgraph"], "metadata": {"description": "

Simple procedures are given and student is asked to carry them out or un-do them.

\n

Version 1: i and ii have the same answer. iii and iv both have two answers.

\n

Version 2: i and ii have different answers. iii has two answers,biv has one answer.

\n

Version 3: i and ii have different answer. iii has one answer, iv has two answers.

\n

Version 4: i and ii have the same answer. iii has one answer, iv has two answers.

", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {"eqnline": {"parameters": [["a", "number"], ["b", "number"]], "language": "javascript", "definition": "// This functions plots a quadratic graph of the form y = (x+a)^2 - b\n\n\n// Max and min x and y values for the axis.\nvar x_min = -10;\nvar x_max = 4;\nvar y_min = -6;\nvar y_max = 10;\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: true,\n grid: true\n }\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]]);\n\n// create the y-axis\nvar yaxis = board.create('axis',[[0,0],[0,1]], );\n\n\n\n\n// Plot the function.\n board.create('functiongraph',\n [function(x){ return (x+a)*(x+a)-b},x_min,x_max]);\n\n\n\nreturn div;", "type": "html"}}, "variables": {"sub2": {"name": "sub2", "description": "", "group": "part a", "definition": "random(1..3)", "templateType": "anything"}, "add2": {"name": "add2", "description": "", "group": "part a", "definition": "random(1..5)", "templateType": "anything"}, "shift": {"name": "shift", "description": "", "group": "part a", "definition": "vector(shuffle(1..3)+[0])", "templateType": "anything"}, "gy": {"name": "gy", "description": "", "group": "part a", "definition": "vector((ymax[0]+add2)^2-sub2,(ymax[1]+add2)^2-sub2,(ymax[2]+add2)^2-sub2,(ymax[3]+add2)^2-sub2)", "templateType": "anything"}, "ymin": {"name": "ymin", "description": "", "group": "part a", "definition": "vector(-add2,-add2,-add2,-add2)-shift", "templateType": "anything"}, "ymax": {"name": "ymax", "description": "", "group": "part a", "definition": "vector(-add2,-add2,-add2,-add2)+shift", "templateType": "anything"}}, "variable_groups": [{"name": "part a", "variables": ["add2", "sub2", "ymax", "ymin", "shift", "gy"]}], "preamble": {"css": "", "js": ""}, "name": "Algebra: solving equations graphically. Version 2", "tags": [], "advice": "", "statement": "

If a question has more than one answer, increase the number of COLUMNS and list your answers in ASCENDING ORDER.

", "rulesets": {}, "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/"}]}