// Numbas version: exam_results_page_options {"name": "Maria's copy of Domain of a polynomial", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"b": {"definition": "a+random(1..10)", "templateType": "anything", "description": "", "name": "b", "group": "Ungrouped variables"}, "n": {"definition": "random(1..5)", "templateType": "anything", "description": "", "name": "n", "group": "Ungrouped variables"}, "poly": {"definition": "if(n=2,'\\$\\\\simplify{{out}({inp})={c[0]}+{c[1]}{inp}+{c[2]}{inp}^2}\\$',\nif(n=3, '\\$\\\\simplify{{out}({inp})={c[0]}+{c[1]}{inp}+{c[2]}{inp}^2+{c[3]}{inp}^3}\\$',\nif(n=4, '\\$\\\\simplify{{out}({inp})={c[0]}+{c[1]}{inp}+{c[2]}{inp}^2+{c[3]}{inp}^3+{c[4]}{inp}^4}\\$',\nif(n=5, '\\$\\\\simplify{{out}({inp})={c[0]}+{c[1]}{inp}+{c[2]}{inp}^2+{c[3]}{inp}^3+{c[4]}{inp}^4+{c[5]}{inp}^5}\\$',\n '\\$\\\\simplify{{out}({inp})={c[0]}+{c[1]}{inp}}\\$'))))", "templateType": "anything", "description": "", "name": "poly", "group": "Ungrouped variables"}, "a": {"definition": "random(-12..2)", "templateType": "anything", "description": "", "name": "a", "group": "Ungrouped variables"}, "c": {"definition": "[random(-12..12 except 0)]+repeat(random(0,random(-12..12 except 0)),n-1)+[random(-12..12 except 0)]", "templateType": "anything", "description": "", "name": "c", "group": "Ungrouped variables"}, "out": {"definition": "expression(random('f','h','g','p','q','y'))", "templateType": "anything", "description": "", "name": "out", "group": "Ungrouped variables"}, "inp": {"definition": "expression(random('x','r','s','t','w'))", "templateType": "anything", "description": "", "name": "inp", "group": "Ungrouped variables"}}, "rulesets": {}, "name": "Maria's copy of Domain of a polynomial", "advice": "

The function {poly} is a polynomial. Regardless of the value of $\\simplify{{inp}}$, the function $\\simplify{{out}}$ will output a number. That is, the domain of $\\simplify{{out}}$ is the set of all real numbers. We can write this as 

\n

\\[\\text{dom}(\\simplify{{out}})=\\mathbb{R}\\]

\n

or as the open interval

\n

\\[\\text{dom}(\\simplify{{out}})=(-\\infty,\\infty).\\]

\n

", "ungrouped_variables": ["out", "inp", "n", "c", "poly", "a", "b"], "extensions": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "parts": [{"distractors": ["", "", "", "", "", ""], "marks": 0, "variableReplacements": [], "scripts": {}, "warningType": "none", "type": "m_n_2", "prompt": "

Which of the following represents the domain of {poly}?

", "choices": ["

$\\mathbb{R}$

", "

$(-\\infty,\\infty)$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\, \\var{a}\\leq\\simplify{{inp}}\\leq\\var{b}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\, \\var{a}<\\simplify{{inp}}<\\var{b}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\, \\simplify{{inp}}\\ne \\var{c[0]}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\, \\simplify{{inp}}<\\var{a}\\, \\text{or} \\,\\simplify{{inp}}\\ge\\var{b}\\}$

"], "shuffleChoices": true, "minMarks": 0, "maxMarks": 0, "displayType": "checkbox", "showCorrectAnswer": true, "displayColumns": "1", "showFeedbackIcon": true, "matrix": ["1", "1", 0, 0, 0, 0], "variableReplacementStrategy": "originalfirst", "minAnswers": 0, "maxAnswers": 0}], "tags": [], "variable_groups": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Multiple choice question. Given a randomised polynomial select the possibe ways of writing the domain of the function.

"}, "statement": "

Given the real function below, you should be able to determine its domain. 

", "functions": {}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}