// 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": [{"rulesets": {}, "variable_groups": [], "tags": [], "parts": [{"variableReplacementStrategy": "originalfirst", "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "sortAnswers": false, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "gaps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "checkVariableNames": true, "failureRate": 1, "answerSimplification": "all", "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "sin(cos({a}x)+{b})"}, {"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "checkVariableNames": false, "failureRate": 1, "answerSimplification": "all", "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "cos(sin({b}x)+{a})"}], "unitTests": [], "type": "gapfill", "prompt": "

Input:

\n
    \n
  1. $\\sin(\\cos(\\var{a}x)+\\var{b})$: [[0]]
  2. \n
  3. $\\cos(\\sin(\\var{b}x)+\\var{a})$: [[1]]
  4. \n
"}, {"variableReplacementStrategy": "originalfirst", "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "sortAnswers": false, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "gaps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "checkVariableNames": false, "failureRate": 1, "answerSimplification": "all", "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "abs((x + {c}) / (x + {d}))"}, {"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "x", "value": ""}], "checkVariableNames": false, "failureRate": 1, "answerSimplification": "all", "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "ln(abs((x + {a}) / (x + {d})))"}], "unitTests": [], "type": "gapfill", "prompt": "

Input:

\n
    \n
  1. $\\displaystyle \\simplify[all]{Abs((x + {c}) / (x + {d}))}$: [[0]]
  2. \n
  3. $\\displaystyle \\simplify[all]{ln(Abs((x + {a}) / (x + {d})))}$: [[1]]
  4. \n
"}, {"variableReplacementStrategy": "originalfirst", "customName": "", "showCorrectAnswer": true, "showFeedbackIcon": true, "sortAnswers": false, "variableReplacements": [], "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "useCustomName": false, "gaps": [{"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "t", "value": ""}], "checkVariableNames": false, "failureRate": 1, "answerSimplification": "all", "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "{a} * t ^ { -b} * e ^ (( -{c}) * t) * sin({b} * t) + (t + {d} * t ^ 3) * e ^ ({c} * t)"}, {"variableReplacementStrategy": "originalfirst", "unitTests": [], "showFeedbackIcon": true, "vsetRangePoints": 5, "variableReplacements": [], "useCustomName": false, "marks": 1, "extendBaseMarkingAlgorithm": true, "checkingType": "absdiff", "vsetRange": [0, 1], "showCorrectAnswer": true, "type": "jme", "showPreview": true, "valuegenerators": [{"name": "y", "value": ""}], "checkVariableNames": false, "failureRate": 1, "answerSimplification": "all", "customName": "", "scripts": {}, "checkingAccuracy": 0.001, "customMarkingAlgorithm": "", "answer": "arctan(({c} * y ^ 2 + {d}) / ((y + {a}) * (y + {b})))"}], "unitTests": [], "type": "gapfill", "prompt": "

Input:

\n
    \n
  1. $\\simplify[all]{{a} * t ^ { -b} * e ^ (( -{c}) * t) * Sin({b} * t) + (t + {d} * t ^ 3) * e ^ ({c} * t)}$: [[0]]
  2. \n
  3. $\\displaystyle \\simplify[all]{arctan(({c} * y ^ 2 + {d}) / ((y + {a}) * (y + {b})))}$: [[1]]
  4. \n
"}], "functions": {}, "name": "How to enter functions - Getting Started", "ungrouped_variables": ["a", "c", "b", "d"], "preamble": {"js": "", "css": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Dealing with functions in Numbas.

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

FUNCTIONS

\n
    \n
  1. 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.
  2. \n
  3. The absolute value function is written abs(a).
  4. \n
  5. $\\arcsin(x)$, $\\arccos(x)$ and $\\arctan(x)$ are all recognized as the standard inverse trig functions, and you input them as they are written.
  6. \n
\n

Here are some examples for you to try:

\n

(If you want help, press Reveal Answers to see correct inputs in the Advice section.)

", "advice": "

Correct inputs for these questions are as follows, although there may be other correct ways of inputting these:  

\n

a)

\n
    \n
  1. sin(cos({a}x)+{b})
  2. \n
  3. cos(sin({a}x + {b}))
  4. \n
\n

b)

\n
    \n
  1. abs((x + {c}) / (x + {d}))
  2. \n
  3. ln(abs((x + {a}) / (x + {d})))
  4. \n
\n

c)

\n
    \n
  1. {a}t^({-b})*e^({-c}t)*sin({b}t) + (t + {d}t ^ 3)*e ^ ({c}t)
  2. \n
  3. arctan(({c}y ^ 2 + {d}) / ((y + {a})*(y + {b})))
  4. \n
", "variables": {"c": {"description": "", "definition": "random(2..9)", "group": "Ungrouped variables", "name": "c", "templateType": "anything"}, "b": {"description": "", "definition": "random(3..9)", "group": "Ungrouped variables", "name": "b", "templateType": "anything"}, "a": {"description": "", "definition": "random(2..9)", "group": "Ungrouped variables", "name": "a", "templateType": "anything"}, "d": {"description": "", "definition": "random(2..9)", "group": "Ungrouped variables", "name": "d", "templateType": "anything"}}, "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/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "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/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}