// Numbas version: exam_results_page_options {"name": "How to enter powers - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s"], "name": "How to enter powers - Getting Started", "tags": ["brackets", "checked2015", "input", "introduction", "Numbas", "numbas", "powers"], "advice": "", "rulesets": {}, "parts": [{"prompt": "

To test your input of powers try the following examples:

\n

Input as a single power of $x$:

\n

$\\simplify[all]{e^({a}*x)e^({b}*x)}=\\;$[[0]]

\n

(The answer is $\\simplify[all]{e^({a+b}x)}$ but you have to enter it properly.)

\n

Your input is shown in mathematical notation in a box next to your input so that you can check that you have entered it correctly.

\n

Click on Submit part to check on your answer.

\n

Click on the input field and edit your answer by inputting without brackets around the powers to see what happens.

\n

 

\n

 

", "marks": 0, "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 1e-05, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "e^({a+b}*x)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 0.1]}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "

Input $x^{\\var{c}}x^{\\var{d}}$ as a single power of $x$.

\n

For example, you would input $x^{-6}x^{-5}$ as x^(-11).

\n

$x^{\\var{c}}x^{\\var{d}}=\\;$[[0]]

", "marks": 0, "gaps": [{"expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "x^({c+d})", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "

Input $(x \\cdot y)^{\\var{f}}$ in the form $x^a \\times y^b$ for suitable values of $a$ and $b$. 

\n

$(x \\cdot y)^{\\var{f}}=\\;$[[0]]

", "marks": 0, "gaps": [{"notallowed": {"message": "

Input in the form $x^a*y^b$ for suitable values of $a$ and $b$.

", "showStrings": false, "strings": ["xy", "x*y"], "partialCredit": 0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "all", "scripts": {}, "answer": "x^{f}*y^{f}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}], "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

The standard way of inputting powers is as follows:

\n

$a^b$ is input as a^b - and this is the only way to input powers.

\n

But you have to be careful with inputting expressions such as $e^{2x}$ and $(xy)^2$. In these cases brackets should be used, as we now show:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PowerCorrect InputIncorrect Input
$e^{2x}$e^(2*x)e^2*x (system thinks this is $e^2 \\times x$)
$(xy)^2$(x*y)^2x*y^2 (system thinks this is $x \\times y^2$)
\n

So make sure that you use brackets to properly define your powers. This is a major source of input inaccuracies.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(6..12)*s", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-12..-6)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(6..12 except a)*s", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(-12..-6)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "f": {"definition": "random(-5,-4,-3,-2,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "s": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}}, "metadata": {"notes": "", "description": "

Information on inputting powers

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "steve kilgallon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/268/"}]}]}], "contributors": [{"name": "steve kilgallon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/268/"}]}