// Numbas version: exam_results_page_options
{"name": "How to enter functions - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"d": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..9)", "name": "d", "description": ""}, "b": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(3..9)", "name": "b", "description": ""}, "a": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..9)", "name": "a", "description": ""}, "c": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..9)", "name": "c", "description": ""}}, "ungrouped_variables": ["a", "c", "b", "d"], "name": "How to enter functions - Getting Started", "functions": {}, "parts": [{"showCorrectAnswer": true, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "
Input:
\n\n- $\\sin(\\cos(\\var{a}x)+\\var{b})$: [[0]]
\n- $\\cos(\\sin(\\var{b}x)+\\var{a})$: [[1]]
\n
", "unitTests": [], "sortAnswers": false, "scripts": {}, "gaps": [{"answer": "sin(cos({a}x)+{b})", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "showPreview": true, "checkVariableNames": true, "checkingType": "absdiff", "vsetRange": [0, 1], "type": "jme", "failureRate": 1, "scripts": {}, "answerSimplification": "all", "expectedVariableNames": ["x"], "unitTests": [], "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showFeedbackIcon": true}, {"answer": "cos(sin({b}x)+{a})", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "showPreview": true, "checkVariableNames": false, "checkingType": "absdiff", "vsetRange": [0, 1], "type": "jme", "failureRate": 1, "scripts": {}, "answerSimplification": "all", "expectedVariableNames": [], "unitTests": [], "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showFeedbackIcon": true}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "showFeedbackIcon": true}, {"showCorrectAnswer": true, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "Input:
\n\n- $\\displaystyle \\simplify[all]{Abs((x + {c}) / (x + {d}))}$: [[0]]
\n- $\\displaystyle \\simplify[all]{ln(Abs((x + {a}) / (x + {d})))}$: [[1]]
\n
", "unitTests": [], "sortAnswers": false, "scripts": {}, "gaps": [{"answer": "abs((x + {c}) / (x + {d}))", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "showPreview": true, "checkVariableNames": false, "checkingType": "absdiff", "vsetRange": [0, 1], "type": "jme", "failureRate": 1, "scripts": {}, "answerSimplification": "all", "expectedVariableNames": [], "unitTests": [], "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showFeedbackIcon": true}, {"answer": "ln(abs((x + {a}) / (x + {d})))", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "showPreview": true, "checkVariableNames": false, "checkingType": "absdiff", "vsetRange": [0, 1], "type": "jme", "failureRate": 1, "scripts": {}, "answerSimplification": "all", "expectedVariableNames": [], "unitTests": [], "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showFeedbackIcon": true}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "showFeedbackIcon": true}, {"showCorrectAnswer": true, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "Input:
\n\n- $\\simplify[all]{{a} * t ^ { -b} * e ^ (( -{c}) * t) * Sin({b} * t) + (t + {d} * t ^ 3) * e ^ ({c} * t)}$: [[0]]
\n- $\\displaystyle \\simplify[all]{arctan(({c} * y ^ 2 + {d}) / ((y + {a}) * (y + {b})))}$: [[1]]
\n
", "unitTests": [], "sortAnswers": false, "scripts": {}, "gaps": [{"answer": "{a} * t ^ { -b} * e ^ (( -{c}) * t) * sin({b} * t) + (t + {d} * t ^ 3) * e ^ ({c} * t)", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "showPreview": true, "checkVariableNames": false, "checkingType": "absdiff", "vsetRange": [0, 1], "type": "jme", "failureRate": 1, "scripts": {}, "answerSimplification": "all", "expectedVariableNames": [], "unitTests": [], "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showFeedbackIcon": true}, {"answer": "arctan(({c} * y ^ 2 + {d}) / ((y + {a}) * (y + {b})))", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "showPreview": true, "checkVariableNames": false, "checkingType": "absdiff", "vsetRange": [0, 1], "type": "jme", "failureRate": 1, "scripts": {}, "answerSimplification": "all", "expectedVariableNames": [], "unitTests": [], "checkingAccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 1, "showFeedbackIcon": true}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "showFeedbackIcon": true}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "FUNCTIONS
\n\n- The Numbas system recognises all standard functions but you must use brackets for the arguments of the functions, e.g.
sin(x)
not sinx
, ln(a)
not lna
. \n- The absolute value function is written
abs(a)
. \n- $\\arcsin(x)$, $\\arccos(x)$ and $\\arctan(x)$ are all recognized as the standard inverse trig functions, and you input them as they are written.
\n
\nHere are some examples for you to try:
\n(If you want help, press Reveal Answers to see correct inputs in the Advice section.)
", "tags": ["arctan", "brackets", "checked2015", "functions", "input", "introduction", "Numbas", "numbas", "standard functions"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "extensions": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Dealing with functions in Numbas.
"}, "advice": "Correct inputs for these questions are as follows, although there may be other correct ways of inputting these:
\na)
\n\n sin(cos({a}x)+{b})
\n cos(sin({a}x + {b}))
\n
\nb)
\n\n abs((x + {c}) / (x + {d}))
\n ln(abs((x + {a}) / (x + {d})))
\n
\nc)
\n\n {a}t^({-b})*e^({-c}t)*sin({b}t) + (t + {d}t ^ 3)*e ^ ({c}t)
\n arctan(({c}y ^ 2 + {d}) / ((y + {a})*(y + {b})))
\n
", "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}