// Numbas version: finer_feedback_settings {"name": "Domain of an exponential", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Domain of an exponential", "tags": [], "metadata": {"description": "

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

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Given the real functions below, you should be able to determine their domains. 

", "advice": "

a) The function $f(x)=e^x$ is an exponential function. Regardless of the value of $x$, the function $f$ will output a number. That is, the domain of $f$ is the set of all real numbers. We can write this as 

\n

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

\n

or as the open interval

\n

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

\n

\n

b) The function $ \\var{out}(\\var{inp}) =\\simplify{ {c[0]}*{b}^({c[2]}{inp}+{c[3]})+{c[4]}} $ is also an exponential function. 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).\\]

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"inp": {"name": "inp", "group": "Ungrouped variables", "definition": "expression(random('x','r','s','t','w'))", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "shuffle(-12..12 except [-1,0,1])[0..5]", "description": "", "templateType": "anything", "can_override": false}, "out": {"name": "out", "group": "Ungrouped variables", "definition": "expression(random('f','h','g','p','q','y'))", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(2..12)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["out", "inp", "c", "b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which of the following represents the domain of $f(x)=e^x$?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": "1", "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["

$\\mathbb{R}$

", "

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

", "

$\\{x\\in\\mathbb{R}:\\, x>0\\}$

", "

$\\{x\\in\\mathbb{R}:\\, x\\ge 0\\}$

", "

$\\{x\\in\\mathbb{R}:\\, -e<x< e\\}$

", "

$\\{x\\in\\mathbb{R}:\\, x\\ne 0\\}$

"], "matrix": ["1", "1", 0, 0, 0, 0], "distractors": ["", "", "", "", "", ""]}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which of the following represents the domain of $ \\var{out}(\\var{inp}) =\\simplify{ {c[0]}*{b}^({c[2]}{inp}+{c[3]})+{c[4]}} $?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": "1", "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["

$\\mathbb{R}$

", "

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

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\, \\simplify{{inp}}\\ge \\var{c[4]}\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\, \\simplify{{inp}}>0\\}$

", "

$\\{\\simplify{{inp}}\\in\\mathbb{R}:\\, \\simplify{{inp}}\\ne \\simplify{-{c[3]}/{c[2]}}\\}$

", "

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

"], "matrix": ["1", "1", 0, 0, 0, 0], "distractors": ["", "", "", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}