// Numbas version: exam_results_page_options {"name": "sp\u00f8rsm\u00e5l 2", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {"discont": {"parameters": [["a", "number"], ["b", "number"], ["c", "number"], ["p", "number"], ["q1", "number"], ["q2", "number"], ["er1", "number"], ["er2", "number"], ["er3", "number"], ["dis", "number"]], "definition": "var boxup=Math.max(3,p,p+er1,q1*(b-a)+p+er1,q1*(b-a)+p+er1+er2,q2*(c-b)*(c-b)+q1*(b-a)+p+er1+er2,q2*(c-b)*(c-b)+q1*(b-a)+p+er1+er2+er3)+2;\nvar boxdown=Math.min(-3,p,p+er1,q1*(b-a)+p+er1,q1*(b-a)+p+er1+er2,q2*(c-b)*(c-b)+q1*(b-a)+p+er1+er2,q2*(c-b)*(c-b)+q1*(b-a)+p+er1+er2+er3)-2;\nvar div = Numbas.extensions.jsxgraph.makeBoard('400px','400px', {axis:true, boundingbox:[Math.min(-2,a-2),boxup,Math.max(c+2,2),boxdown]});\nvar brd=div.board;\nvar l1=brd.create('functiongraph',[function(x){return p;},a-2,a],{strokeColor:'red'});\nvar l2=brd.create('functiongraph',[function(x){return q1*x+(p+er1-q1*a);},a,b],{strokeColor:'red'});\nvar l3=brd.create('functiongraph',[function(x){return q2*x*x-2*b*q2*x+(p+er1+er2+q2*b*b+q1*(b-a));},b,c],{strokeColor:'red'});\nvar l4=brd.create('functiongraph',[function(x){return q2*(c-b)*(c-b)+q1*(b-a)+p+er1+er2+er3;},c,c+2],{strokeColor:'red'});\nreturn div;\n", "type": "html", "language": "javascript"}}, "variables": {"u": {"definition": "if(w=2,0,1)", "group": "Ungrouped variables", "name": "u", "templateType": "anything", "description": ""}, "q1": {"definition": "random(1..4)", "group": "Ungrouped variables", "name": "q1", "templateType": "anything", "description": ""}, "q2": {"definition": "-random(1..3)", "group": "Ungrouped variables", "name": "q2", "templateType": "anything", "description": ""}, "er1": {"definition": "t*0+(1-t)*random(-2,-1,1,2,3)", "group": "Ungrouped variables", "name": "er1", "templateType": "anything", "description": ""}, "er3": {"definition": "v*0+(1-v)*random(-2,-1,1,2,3)", "group": "Ungrouped variables", "name": "er3", "templateType": "anything", "description": ""}, "c": {"definition": "b+random(1..3)", "group": "Ungrouped variables", "name": "c", "templateType": "anything", "description": ""}, "a": {"definition": "random(-3..3)", "group": "Ungrouped variables", "name": "a", "templateType": "anything", "description": ""}, "dis": {"definition": "if(w=1,a,if(w=2,b,c))", "group": "Ungrouped variables", "name": "dis", "templateType": "anything", "description": ""}, "v": {"definition": "if(w=3,0,1)", "group": "Ungrouped variables", "name": "v", "templateType": "anything", "description": ""}, "w": {"definition": "random(1..3)", "group": "Ungrouped variables", "name": "w", "templateType": "anything", "description": ""}, "p": {"definition": "random(-9..9)", "group": "Ungrouped variables", "name": "p", "templateType": "anything", "description": ""}, "t": {"definition": "if(w=1,0,1)", "group": "Ungrouped variables", "name": "t", "templateType": "anything", "description": ""}, "b": {"definition": "a+random(1..3)", "group": "Ungrouped variables", "name": "b", "templateType": "anything", "description": ""}, "er2": {"definition": "u*0+(1-u)*random(-2,-1,1,2,3)", "group": "Ungrouped variables", "name": "er2", "templateType": "anything", "description": ""}}, "name": "sp\u00f8rsm\u00e5l 2", "ungrouped_variables": ["q1", "a", "c", "q2", "er1", "er2", "er3", "p", "b", "u", "t", "w", "v", "dis"], "preamble": {"css": "", "js": ""}, "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "tags": [], "variable_groups": [], "rulesets": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "advice": "

{discont(a,b,c,p,q1,q2,er1,er2,er3,dis)}

\n

\n

Funksjonen er ikke kontinuerlig da $x=\\var{dis}$.

\n

Da $x=\\var{dis}$ får vi:

\n

\\[\\lim_{x \\nearrow\\; \\var{dis}} f(x) \\neq \\lim_{x \\searrow\\; \\var{dis}} f(x)\\]

\n

\n

\n

Se grafen til $f$.

", "parts": [{"scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill", "variableReplacements": [], "gaps": [{"scripts": {}, "minValue": "dis", "correctAnswerFraction": false, "showFeedbackIcon": true, "mustBeReducedPC": 0, "notationStyles": ["plain", "en", "si-en"], "marks": 3, "correctAnswerStyle": "plain", "maxValue": "dis", "type": "numberentry", "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "allowFractions": false}], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "prompt": "\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
$f(x) = \\left \\{ \\begin{array}{l} \\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}} \\\\\\phantom{{.}} \\\\ \\phantom{{.}} \\\\ \\phantom{{.}}\\end{array} \\right .$$\\var{p},$$ x \\leq \\var{a},$
$\\simplify{{q1}*x+{p+er1-q1*a}},$$\\var{a} \\lt x \\leq \\var{b},$
$\\simplify{{q2}*x^2+{-2*q2*b}*x+{q2*b^2+q1*(b-a)+p+er1+er2}},$$\\var{b}\\lt x \\leq \\var{c},$
$\\var{q2*(c-b)^2+q1*(b-a)+p+er1+er2+er3},$$x \\gt \\var{c}.$
\n

$f$ er ikke kontinuerlig i punktet $x=a$ når $a=\\;$[[0]].

\n

"}], "extensions": ["jsxgraph"], "statement": "

Finn punktet der funksjonen $f:\\mathbb{R} \\rightarrow \\mathbb{R}$ ikke er kontinuerlig.

\n

", "type": "question", "contributors": [{"name": "Ida Landg\u00e4rds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2336/"}]}]}], "contributors": [{"name": "Ida Landg\u00e4rds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2336/"}]}