// Numbas version: exam_results_page_options {"name": "Input 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Input 3", "tags": ["Numbas", "brackets", "input", "introduction", "numbas", "powers"], "advice": "", "rulesets": {}, "parts": [{"prompt": "
Write $e^{\\simplify{{a}x}}$. [[0]]
\nYour input is shown in mathematical notation in a box next to your input so that you can check that you have entered it correctly.
\nClick on Submit part to check your answer.
\nClick on the input field and remove the brackets, then re-submit and see what happens.
\n\n
", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 1e-05, "vsetrange": [0.0, 0.1], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "e^({a}*x)", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "
Input $x^{\\var{c}}x^{\\var{d}}$ as a single power of $x$.
\nFor example, you would input $x^{-6}x^{-5}$ as x^(-11)
.
$x^{\\var{c}}x^{\\var{d}}=\\;$[[0]]
", "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "x^({c+d})", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}, {"prompt": "Input $(xy)^{\\var{f}}$ in the form $x^ay^b$ for suitable values of $a$ and $b$.
\n$(xy)^{\\var{f}}=\\;$[[0]]
", "gaps": [{"notallowed": {"message": "Input in the form $x^ay^b$ for suitable values of $a$ and $b$.
", "showstrings": false, "strings": ["xy", "x*y"], "partialcredit": 0.0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0.0, 1.0], "showpreview": true, "vsetrangepoints": 5.0, "checkingtype": "absdiff", "answersimplification": "all", "marks": 1.0, "answer": "x^{f}*y^{f}", "checkvariablenames": false, "type": "jme"}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "In this example we show you how to input powers. It is important that you get this right as many questions ask for such inputs.
\n$a^b$ is input as a^b
.
But you have to be careful with inputting such expressions as
\n\\[e^{2x},\\;x^{-2},\\;(xy)^2\\]
\nIn these cases the exponent must be enclosed in brackets.
\nPower | Correct Input | Incorrect Input | Why it's wrong |
---|---|---|---|
$e^{2x}$ | \ne^(2*x) | \n e^2*x | \n The system thinks this is $(e^2) \\cdot x$ | \n
$x^{-2}$ | \nx^(-2) | \n x^-2 | \n This produces an error | \n
$(xy)^2$ | \n(x*y)^2 | \n x*y^2 | \n The system thinks this is $x \\cdot (y^2)$ | \n
So make sure that you use brackets to properly define your powers. This is a major source of input inaccuracies.
\nTo test your input of powers, try the following examples.
", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {"a": {"definition": "random(6..12)*s", "name": "a"}, "s": {"definition": "random(1,-1)", "name": "s"}, "f": {"definition": "random(-5,-4,-3,-2,-1)", "name": "f"}, "c": {"definition": "random(-12..-6)", "name": "c"}, "d": {"definition": "random(-12..-6)", "name": "d"}}, "metadata": {"notes": "", "description": "Information on inputting powers
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}