// Numbas version: exam_results_page_options {"name": "Funci\u00f3n Cuadr\u00e1tica", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [["question-resources/Terraza.png", "/srv/numbas/media/question-resources/Terraza.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "values"], "name": "Funci\u00f3n Cuadr\u00e1tica", "tags": ["graph", "interactive", "JSXgraph", "Jsxgraph", "jsxgraph", "plot", "quadratic"], "advice": "

prueba

", "rulesets": {"std": ["all", "fractionNumbers"]}, "parts": [{"prompt": "

Complete la siguiente tabla:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
AnchoLargoÁrea
03[[0]]
14[[1]]
25[[2]]
36[[3]]
47[[4]]
58[[5]]
69[[6]]
710[[7]]
811[[8]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "0", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "4", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "10", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "18", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "28", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "40", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "54", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "70", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "88", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "
Deslice los puntos en el gráfico, según la tabla anterior.
\n
Observación: Si algún valor es cero, debe mover de igual forma el punto.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{values[0]}", "minValue": "{values[0]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{values[1]}", "minValue": "{values[1]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{values[2]}", "minValue": "{values[2]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{values[3]}", "minValue": "{values[3]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{values[4]}", "minValue": "{values[4]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{values[5]}", "minValue": "{values[5]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{values[6]}", "minValue": "{values[6]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{values[7]}", "minValue": "{values[7]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{values[8]}", "minValue": "{values[8]}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": false, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Si $x$ es el ancho de la terraza, entonces su largo es [[0]].

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "x+3", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

La función que representa el área de la terraza es

\n

$A(x)=$[[0]],

\n

donde la condición para $x$ es

\n

[[1]].

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": false, "scripts": {}, "answer": "x^2+3x", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": false, "scripts": {}, "answer": "x>0", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

La función del área es del tipo

", "matrix": ["2", 0, 0, 0, 0], "shuffleChoices": true, "marks": 0, "variableReplacements": [], "choices": ["

Cuadrática.

", "

Lineal.

", "

Exponencial.

", "

Logarítmica.

", "

Sinusoidal.

"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": "2", "scripts": {}, "distractors": ["", "", "", "", ""], "displayColumns": "1", "showCorrectAnswer": true, "type": "1_n_2", "minMarks": "0"}, {"prompt": "

Suponga que la terraza debe tener un área de 50 m$^2$, la ecuación que debe resolver es

\n

[[0]].

\n

En este caso, las longitudes (aproximadas a dos decimales) son [[1]] metros de ancho y [[2]] metros de largo.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "x^2+x=50", "marks": "2", "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"allowFractions": false, "variableReplacements": [], "maxValue": "5.73", "minValue": "5.73", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "8.73", "minValue": "8.73", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": "2", "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

En un jardín se desea dedicar un área rectangular para construir una terraza, de modo que el largo sea de 3 metros mayor que el ancho, como se muestra en la figura.

\n

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "table#values th {\n background: none;\n text-align: center;\n}", "js": "function dragpoint_board() {\n\n var scope = question.scope; \n var a = scope.variables.a.value;\n var c = scope.variables.c.value;\n \n\n\n var div = Numbas.extensions.jsxgraph.makeBoard('400px','500px',{boundingBox:[-1,95,9,-5],grid:false,\n axis:false,\n grid:false,\n zoom: {\n factorX: 1.25,factorY: 1.25,wheel: true,needshift: true,eps: 0.1\n }\n });\n $(question.display.html).find('#dragpoint').append(div);\n var board = div.board;\n \n var xaxis = board.create('axis',\n\t[ [0,0],[1,0] ], {\n\t label: {offset: [7, -10]}, // Doesn't do anything here.\n\t drawZero:false // Doesn't do anything here.\n\t}\n); \nxaxis.removeAllTicks();\nboard.create('ticks', [xaxis, 1], { // The number here is the distance between Major ticks\n\tstrokeColor:'#ccc',\n\tmajorHeight:-1, // Need this because the JXG.Options one doesn't apply\n\tdrawLabels:true, // Needed, and only works for equidistant ticks\n\tlabel: {offset: [-1, -10]},\n\tminorTicks:1, // The NUMBER of small ticks between each Major tick\n\tdrawZero:true\n }\n);\nvar yaxis = board.create('axis',\t[ [0,0],[0,1] ]);\nyaxis.removeAllTicks();\nboard.create('ticks', [yaxis, 5], {\n\tstrokeColor:'#ccc',\n\tmajorHeight:-1, // Need this because the JXG.Options one doesn't apply\n\tdrawLabels:true, // Only works for equidistant ticks\n\tlabel: {offset: [-25, 10]},\n\tminorTicks:1, // The NUMBER of small ticks between each Major tick\n\tdrawZero:false\n }\n);\n \n //shorthand to evaluate a mathematical expression to a number\n function evaluate(expression) {\n try {\n var val = Numbas.jme.evaluate(expression,question.scope);\n return Numbas.jme.unwrapValue(val);\n }\n catch(e) {\n // if there's an error, return no number\n return NaN;\n }\n }\n \n // set up points array\n var num_points = 9;\n var points = [];\n \n \n // this function sets up the i^th point\n function make_point(i) {\n \n // calculate initial coordinates\n var x = i;\n \n // create an invisible vertical line for the point to slide along\n var line = board.create('line',[[x,0],[x,1]],{visible: false});\n \n // create the point\n var point = points[i] = board.create(\n 'glider',\n [i,0,line],\n {\n name:'',\n size:2, // Tama\u00f1o punto\n snapSizeY: 1, // Punt avanza a m\u00faltiplos de 1\n snapToGrid: true\n }\n );\n \n // the contents of the input box for this point\n var studentAnswer = question.parts[1].gaps[i].display.studentAnswer;\n \n //Here I have commented out the functions which connect the student input to the graph and the filling in of the answer fields\n //when the student drags the points on the graph.\n \n // watch the student's input and reposition the point when it changes. \n // ko.computed(function() {\n // y = evaluate(studentAnswer());\n //if(!(isNaN(y)) && board.mode!=board.BOARD_MODE_DRAG) {\n // point.moveTo([x,y],100);\n // }\n // });\n \n // when the student drags the point, update the gapfill input\n point.on('drag',function(){\n var y = Numbas.math.niceNumber(point.Y());\n studentAnswer(y);\n });\n \n }\n \n // Creando los puntos\n for(var i=0;iAdapted from a question written in Dutch by Carolijn Tacken.

\n

Disconnected the graph from the answer fields.

", "description": "

Compute a table of values for a quadratic function. A JSXgraph (the graph paper) plot shows the curve going through the entered values. The student input is now disconnected from the graph so that they slide the points usually after they input the values and the answer fields are not updated.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "AP MAT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/688/"}]}]}], "contributors": [{"name": "AP MAT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/688/"}]}