// Numbas version: finer_feedback_settings {"shuffleQuestions": false, "questions": [{"metadata": {"notes": "", "description": "
Entering numbers and algebraic symbols in Numbas.
", "licence": "None specified"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "rulesets": {}, "preamble": {"js": "", "css": ""}, "variables": {}, "ungrouped_variables": [], "name": "How to enter numbers and algebraic symbols - Getting Started", "advice": "", "functions": {}, "statement": "This example explains how you enter your answers and submit them.
\nThis example and the others are in practice mode - you will be given information on whether or not you have the answer correct or not.
\nAssessed mode does not give you this information.
\nIt is very important that you submit all your answers. If you do not your results will not be recorded. Note that the list of questions in the exam on the left of the window gives information on whether or not you have completed a question. For each question the marks you have gained by submitting are shown there, so if nothing is shown you have not attempted the question.
\nGo to the next question. You can then come back. Note that until you quit the exam for good you can go back to any question and change your answers if you want to.
", "tags": ["answers", "checked2015", "entering", "fields", "input", "introduction", "mathematical notation", "numbas", "Numbas", "parts", "practice mode", "reveal", "submit"], "parts": [{"marks": 0, "gaps": [{"marks": 1, "maxValue": "4", "correctAnswerFraction": false, "type": "numberentry", "integerAnswer": true, "scripts": {}, "showCorrectAnswer": true, "integerPartialCredit": 0, "allowFractions": false, "minValue": "4", "showPrecisionHint": false}], "type": "gapfill", "prompt": "Questions are often split into parts.
\nIn each part you will see various input fields for your answers.
\nThis is the first part and contains one question for you to answer .
\nIt will be clear from the question what you need to enter in each field.
\nFor example, a question could be:
\n$2+2=\\;$[[0]] (enter a number)
\nYou are expected to enter the answer and then press the Submit part button.
\nTry it. Enter the correct value, note that a box appears showing your input, press Submit part - a tick appears. Brilliant!!
\nNow enter an incorrect value. Press Submit part and a cross appears. Note the Show feedback button: clicking on that gives a more detailed feedback - in this case there is not much to say!
\nThis is the sort of feedback you get in practice mode.
\nTry putting in 2+2
as your answer and see what happens as well.
You will be given an error message; click on OK and continue.
\nSo you must be careful and always check that the answer in the input field is what you expect it to be before you move on.
\nPressing the Reveal button at the top of the screen gives you the answers for all parts and usually also gives you a full solution for each part. This is only available in practice mode and certainly not available in assessed mode.
\nAlso note that in practice mode you have available a button at the bottom, Try another question like this one. This is useful for you to try other versions of the question. This question is not randomised, so you will get the same one back again!
", "showCorrectAnswer": true, "scripts": {}}, {"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "notallowed": {"partialCredit": 0, "showStrings": false, "strings": ["+"], "message": "Simplify the expression please!
"}, "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "scripts": {}, "answer": "2*x"}, {"checkingaccuracy": 0.001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "notallowed": {"partialCredit": 0, "showStrings": false, "strings": ["+"], "message": "Simplify further!
"}, "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "scripts": {}, "answer": "x-y"}], "type": "gapfill", "prompt": "This is the second part of this example and it contains 2 questions.
\nYou enter your answers for both and then press Submit part.
\nNote that your input in mathematical notation is displayed next to your input so you can check it has been interpreted correctly.
\n$x+x=\\;$[[0]] (Enter a multiple of $x$ )
\nEnter your answer as 2*x
. You could just enter 2x
without the *
for all multiplications as there are some cases where it is necessary in order to avoid ambiguity.
Simplify the following expression. Once again you see your input rendered in the best possible mathematical notation next to where you type.
\nThis check becomes more important when you input more complicated expressions.
\n$2x-x+y-2y=\\;$[[1]]
\nTry getting one right and one wrong and see the sort of feedback you get. (The grey tick indicates that you some, but not all, of the available marks)
\nAlso try inputting x+x
for the answer to the first question in this part and see what happens after you submit.
Note the red exclamation marks next to the input field when you enter something the system does not like or you have pressed Submit part without answering the question. Move the cursor over the mark and you will get a message saying what the problem is.
\nThe Submit all parts button at the bottom allows you to answer everything in the question at once without submitting each part separately. In this case, the answers in both parts will be submitted.
", "showCorrectAnswer": true, "scripts": {}}]}, {"metadata": {"notes": "", "description": "Details on inputting numbers into Numbas.
", "licence": "None specified"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "rulesets": {}, "preamble": {"js": "", "css": ""}, "variables": {"b1": {"name": "b1", "definition": {"name": "b1", "definition": "random(7,11,13)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "ans1": {"name": "ans1", "definition": {"name": "ans1", "definition": "precround(a1/b1,2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "a": {"name": "a", "definition": {"name": "a", "definition": "random(1..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "c": {"name": "c", "definition": {"name": "c", "definition": "random(2..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "a1": {"name": "a1", "definition": {"name": "a1", "definition": "random(2,3,4,5,6,8,9,10,12)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "b": {"name": "b", "definition": {"name": "b", "definition": "random(3..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "tol": {"name": "tol", "definition": {"name": "tol", "definition": "0.01", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}}, "ungrouped_variables": ["a", "c", "b", "ans1", "a1", "b1", "tol"], "name": "How to enter numbers - Getting Started", "advice": "No advice available.
", "functions": {}, "statement": "In this example we show how to enter numbers, either as
\nFind the result of this calculation: (This is an example of a randomised question - the next time you use this example you will probably be given a different calculation to do):
\n$\\var{a}\\times\\var{b}+\\var{c}=\\;$[[0]]
\nYou have to input a whole number - it could be in decimal form. If the answer was $2$ then you could input 2
or 2.0
- try both forms.
Do not enter your answer as a decimal. Enter as a whole number without the decimal point.
"}, "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "scripts": {}, "answer": "{a*b+c}"}], "type": "gapfill", "prompt": "Sometimes I could force you to enter a whole number not in decimal form. But this should be no problem as you will be warned, as below.
\nEnter the result of this calculation, but enter as a whole number and not as a decimal.
\n$\\var{a}\\times\\var{b}+\\var{c}=\\;$[[0]]
\nEnter the correct answer as a decimal i.e. in the form 2.0
and see what happens:
Decimals
\nMany calculations will result in numbers which need to be entered in decimal notation.
\nI will always ask for the decimal to be input to a certain number of decimal places.
\nOften there is a small tolerance built in so that if you get the result wrong by 1 in the last decimal place then it will be marked as correct.
\nBut accuracy is important, so make sure that you get the calculations correct.
\nFor example:
\nInput $\\displaystyle \\frac{\\var{a1}}{\\var{b1}}$ as a decimal correct to 2 decimal places here: [[0]]
\nTry entering the correct value and submitting. Then vary the last decimal place by 1 either way and submitting, and then the last place by 2 either way and submitting.
\nTry putting in the fraction as it is (i.e. $\\var{a1}/\\var{b1}$ ) and see what happens.
\nThe system gives an error message as what you have put in is not a direct representation of a number. But you can always re-enter.
\nSo be careful - always check after submitting your answer that the input field contains the answer that you thought you entered.
", "showCorrectAnswer": true, "scripts": {}}, {"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "type": "jme", "showCorrectAnswer": true, "expectedvariablenames": [], "checkingtype": "absdiff", "notallowed": {"partialCredit": 0, "showStrings": false, "strings": ["+", "."], "message": "Simplify into a single fraction. Do not enter as a decimal.
"}, "showpreview": true, "vsetrange": [0, 1], "musthave": {"partialCredit": 0, "showStrings": false, "strings": ["/"], "message": "Input as a fraction.
"}, "scripts": {}, "answersimplification": "all, fractionNumbers", "answer": "{a1+b1}/{a1*b1}"}], "type": "gapfill", "prompt": "Fractions
\nYou will find that some questions may ask you to input fractions and not decimals.
\nFor example:
\nFind the following sum as a fraction:
\n$\\displaystyle \\frac{1}{\\var{a1}}+\\frac{1}{\\var{b1}}=\\;$[[0]]
\n(input as a fraction and not a decimal)
\nYou input the answer as {a1+b1}/{a1*b1}
\nTry inputting the decimal version of this to as many places as you like (for example given by the calculator on the PC - you can copy this from the calculator and paste into the input field) and see what happens.
", "showCorrectAnswer": true, "scripts": {}}, {"showCorrectAnswer": true, "marks": 0, "scripts": {}, "type": "information", "prompt": "As this question is in practice mode, if you click on the Reveal button at the top of the window all the question fields are filled with the correct answers. Also, if available, there will be a full solution given under the heading Advice. Just scroll down to see this. However, there is no advice available for this question as it is not needed.
\nFinally as you are in practice mode, if you click on the Try another question like this one button at the bottom you will get this question again but with different numbers (usually!), and you can try it again. This is true for all practice mode questions which are randomised.
"}]}, {"metadata": {"notes": "", "description": "Information on inputting powers
", "licence": "None specified"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "rulesets": {}, "preamble": {"js": "", "css": ""}, "variables": {"d": {"name": "d", "definition": {"name": "d", "definition": "random(-12..-6)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "f": {"name": "f", "definition": {"name": "f", "definition": "random(-5,-4,-3,-2,-1)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "c": {"name": "c", "definition": {"name": "c", "definition": "random(-12..-6)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "a": {"name": "a", "definition": {"name": "a", "definition": "random(6..12)*s", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "b": {"name": "b", "definition": {"name": "b", "definition": "random(6..12 except a)*s", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "s": {"name": "s", "definition": {"name": "s", "definition": "random(1,-1)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s"], "name": "How to enter powers - Getting Started", "advice": "", "functions": {}, "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.
\nThe 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.
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:
\nPower | Correct Input | Incorrect Input |
---|---|---|
$e^{2x}$ | \ne^(2*x) | \ne^2*x (system thinks this is $e^2 \\times x$) | \n
$(xy)^2$ | \n(x*y)^2 | \nx*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.
", "tags": ["brackets", "checked2015", "input", "introduction", "Numbas", "numbas", "powers"], "parts": [{"marks": 0, "gaps": [{"checkingaccuracy": 1e-05, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 0.1], "answersimplification": "all", "scripts": {}, "answer": "e^({a+b}*x)"}], "type": "gapfill", "prompt": "To test your input of powers try the following examples:
\nInput 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.)
\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 on your answer.
\nClick on the input field and edit your answer by inputting without brackets around the powers to see what happens.
\n\n
", "showCorrectAnswer": true, "scripts": {}}, {"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "answersimplification": "all", "scripts": {}, "answer": "x^({c+d})"}], "type": "gapfill", "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]]
", "showCorrectAnswer": true, "scripts": {}}, {"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "checkvariablenames": false, "marks": 1, "type": "jme", "showCorrectAnswer": true, "expectedvariablenames": [], "checkingtype": "absdiff", "notallowed": {"partialCredit": 0, "showStrings": false, "strings": ["xy", "x*y"], "message": "Input in the form $x^a*y^b$ for suitable values of $a$ and $b$.
"}, "showpreview": true, "vsetrange": [0, 1], "scripts": {}, "answersimplification": "all", "answer": "x^{f}*y^{f}"}], "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]]
", "showCorrectAnswer": true, "scripts": {}}]}, {"metadata": {"notes": "", "description": "Inputting algebraic expressions into Numbas.
", "licence": "None specified"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "rulesets": {}, "preamble": {"js": "", "css": ""}, "variables": {"d": {"name": "d", "definition": {"name": "d", "definition": "random(1..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "c": {"name": "c", "definition": {"name": "c", "definition": "s*random(1..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "a": {"name": "a", "definition": {"name": "a", "definition": "random(2..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "b": {"name": "b", "definition": {"name": "b", "definition": "random(2..4)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "s": {"name": "s", "definition": {"name": "s", "definition": "random(1,-1)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}}, "ungrouped_variables": ["a", "s", "b", "c", "d"], "name": "How to enter algebraic expressions - Getting Started", "advice": "", "functions": {}, "statement": "In this example, we look at how you enter algebraic expressions - those involving symbols.
\nThe box next to your input shows what you've written in mathematical notation and is very important as you can check it against the expression you had in mind.
", "tags": ["algebraic expressions", "checked2015", "input", "introduction", "notation", "Numbas", "numbas", "polynomials", "symbols"], "parts": [{"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "answersimplification": "all", "scripts": {}, "answer": "{a}*x^{b}+{c}x+{d}"}], "type": "gapfill", "prompt": "Inputting polynomials such as $3x^2+5x-2$ is easy : just input 3*x^2+5*x-2
.
Try this:
\nInput this polynomial: $\\simplify[all]{{a}*x^{b}+{c}*x+{d}}=\\;$[[0]]
", "showCorrectAnswer": true, "scripts": {}}, {"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "checkvariablenames": true, "marks": 1, "type": "jme", "showCorrectAnswer": true, "expectedvariablenames": ["x", "y"], "checkingtype": "absdiff", "notallowed": {"partialCredit": 0, "showStrings": false, "strings": ["("], "message": "Do not include brackets in your answer.
"}, "showpreview": true, "vsetrange": [0, 1], "scripts": {}, "answersimplification": "all", "answer": "x^2+{a+c}x*y+{a*c}y^2"}], "type": "gapfill", "prompt": "Now consider this problem.
\nExpand the brackets and input the resulting expression:
\n$\\simplify[all]{(x+{a}y)(x+{c}y)}=\\;$[[0]]
\nMake sure that you input an expression in your answer such as $xy$ as x*y
.
(Do not include brackets in your answer.)
", "showCorrectAnswer": true, "scripts": {}}]}, {"metadata": {"notes": "", "description": "Inputting ratios of algebraic expressions.
", "licence": "None specified"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "rulesets": {"std": ["all", "!collectNumbers"]}, "preamble": {"js": "", "css": ""}, "variables": {"c": {"name": "c", "definition": {"name": "c", "definition": "random(2..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "a": {"name": "a", "definition": {"name": "a", "definition": "random(2..16#2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "b": {"name": "b", "definition": {"name": "b", "definition": "random(3..15#2)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "d": {"name": "d", "definition": {"name": "d", "definition": "random(2..9 except [round(b*c/a),c])", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}}, "ungrouped_variables": ["a", "c", "b", "d"], "name": "How to enter algebraic fractions - Getting Started", "advice": "a) The correct input is ({a}+{b}x)/({c}+{d}y)
- the rest are incorrect and you should have ticked those.
b) A correct input is ({b} + {a}y) / ({c} + {d}z)
. Also correct is ({a}y+{b}) / ({c} + {d}z)
etc.
c) A correct input is ({d}z + {b}) / ((x + {a})*(y + {c}))
.
Note the denominator (the bottom of the ratio) has to have two brackets, i.e. ((x + {a})*(y + {c}))
as otherwise the expression ({d}z + {b}) / (x + {a})*(y + {c})
is seen by the system as $\\displaystyle \\left(\\simplify[std]{({d} * z + {b}) / (x + {a})}\\right) (y + \\var{c})$
d) A correct input is ({a} -({b}x + {c})*e ^ ( -{2}x)) / ((x + {2*b})*(y -{3*d}))
Ratios of Algebraic Expressions.
\nBy this we mean expressions of the form $\\displaystyle \\frac{p(x)}{q(x)}$ where $p(x)$ and $q(x)$ are algebraic expressions.
\nIf you want to input such an expression into the system you HAVE TO BE CAREFUL AND USE BRACKETS otherwise mistakes will occur.
\nOnce again, the box displaying your input in mathematical notation beside the input boxes in parts 2, 3 and 4 is very useful as it shows what the system thinks you have entered.
\nFor complicated expressions this is essential as you can check you have written what you really meant.
", "tags": ["algebraic input", "brackets", "checked2015", "input", "introduction", "mathematical expressions", "Numbas", "numbas", "ratios"], "parts": [{"marks": 0, "gaps": [{"maxMarks": 0, "type": "m_n_2", "choices": ["({a}+{b}x)/({c}+{d}y)
{a}+{b}x/({c}+{d}y)
{a}+{b}x/{c}+{d}y
({a}+{b}x)/{c}+{d}y
Examples
\nSuppose we wanted to input the expression $\\displaystyle \\frac{\\var{a}+\\var{b}x}{\\var{c}+\\var{d}y}$ into the system.
\nWhich of the following input expressions are incorrect?
\n[[0]]
\nChoose the incorrect input(s): (You lose 3 marks if you choose the wrong one!)
\nIf you click on Submit part, then on Show feedback, you will be given more detail on your choices.
\nYou can click on Reveal at the top of the window to see solutions, but it's best to work these through yourself. Remember you can always redo the question by clicking on Try another question like this one at the bottom.
", "showCorrectAnswer": true, "scripts": {}}, {"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "answersimplification": "std", "scripts": {}, "answer": "({b}+{a}y)/({d}+{c}z)"}], "type": "gapfill", "prompt": "Input the expression $\\displaystyle \\frac{\\var{b}+\\var{a}y}{\\var{d}+\\var{c}z}$ here: [[0]]
", "showCorrectAnswer": true, "scripts": {}}, {"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "answersimplification": "std", "scripts": {}, "answer": "({d} * z + {b}) / ((x + {a}) * (y + {c}))"}], "type": "gapfill", "prompt": "Input the expression $\\displaystyle \\frac {\\var{d} z + \\var{b}} {(x + \\var{a}) (y + \\var{c})}$ here: [[0]]
", "showCorrectAnswer": true, "scripts": {}}, {"marks": 0, "gaps": [{"checkingaccuracy": 0.0001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "answersimplification": "std", "scripts": {}, "answer": "({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 b}) * (y -{3* d}))"}], "type": "gapfill", "prompt": "Input the expression $\\displaystyle \\simplify[std]{({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 * b}) * (y -{3* d}))}$ here: [[0]]
", "showCorrectAnswer": true, "scripts": {}}]}, {"metadata": {"notes": "", "description": "Dealing with functions in Numbas.
", "licence": "None specified"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "rulesets": {}, "preamble": {"js": "", "css": ""}, "variables": {"c": {"name": "c", "definition": {"name": "c", "definition": "random(2..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "a": {"name": "a", "definition": {"name": "a", "definition": "random(2..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "b": {"name": "b", "definition": {"name": "b", "definition": "random(3..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "d": {"name": "d", "definition": {"name": "d", "definition": "random(2..9)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}}, "ungrouped_variables": ["a", "c", "b", "d"], "name": "How to enter functions - Getting Started", "advice": "Correct inputs for these questions are as follows, although there may be other correct ways of inputting these:
\nsin(cos({a}x)+{b})
cos(sin({a}x + {b}))
abs((x + {c}) / (x + {d}))
ln(abs((x + {a}) / (x + {d})))
{a}t^({-b})*e^({-c}t)*sin({b}t) + (t + {d}t ^ 3)*e ^ ({c}t)
arctan(({c}y ^ 2 + {d}) / ((y + {a})*(y + {b})))
FUNCTIONS
\nsin(x)
not sinx
, ln(a)
not lna
.abs(a)
.Here are some examples for you to try:
\n(If you want help, press Reveal at the top of the screen to see correct inputs in the Advice section.)
", "tags": ["arctan", "brackets", "checked2015", "functions", "input", "introduction", "numbas", "Numbas", "standard functions"], "parts": [{"marks": 0, "gaps": [{"checkingaccuracy": 0.001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "answersimplification": "all", "scripts": {}, "answer": "sin(cos({a}x)+{b})"}, {"checkingaccuracy": 0.001, "vsetrangepoints": 5, "marks": 1, "type": "jme", "showCorrectAnswer": true, "checkvariablenames": false, "checkingtype": "absdiff", "expectedvariablenames": [], "showpreview": true, "vsetrange": [0, 1], "answersimplification": "all", "scripts": {}, "answer": "cos(sin({b}x)+{a})"}], "type": "gapfill", "prompt": "Input:
\nInput:
\nInput:
\nAJY changed name of exam from Input to Getting Started 05/09/2013.
", "description": "6 questions which introduce the user to the Numbas system.
", "licence": "Creative Commons Attribution 4.0 International"}, "percentPass": 0, "allQuestions": true, "pickQuestions": 0, "showQuestionGroupNames": false, "duration": 0, "extensions": [], "question_groups": [{"name": "", "pickQuestions": 0, "questions": [{"name": "How to enter algebraic expressions - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "variable_groups": [], "variables": {"b": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..4)", "name": "b", "description": ""}, "a": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..9)", "name": "a", "description": ""}, "d": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..9)", "name": "d", "description": ""}, "c": {"group": "Ungrouped variables", "templateType": "anything", "definition": "s*random(1..9)", "name": "c", "description": ""}, "s": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(1,-1)", "name": "s", "description": ""}}, "ungrouped_variables": ["a", "s", "b", "c", "d"], "rulesets": {}, "showQuestionGroupNames": false, "functions": {}, "parts": [{"scripts": {}, "gaps": [{"answer": "{a}*x^{b}+{c}x+{d}", "showCorrectAnswer": true, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "answersimplification": "all", "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "Inputting polynomials such as $3x^2+5x-2$ is easy : just input 3*x^2+5*x-2
.
Try this:
\nInput this polynomial: $\\simplify[all]{{a}*x^{b}+{c}*x+{d}}=\\;$[[0]]
", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"answer": "x^2+{a+c}x*y+{a*c}y^2", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": true, "expectedvariablenames": ["x", "y"], "notallowed": {"showStrings": false, "message": "Do not include brackets in your answer.
", "strings": ["("], "partialCredit": 0}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "all", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "Now consider this problem.
\nExpand the brackets and input the resulting expression:
\n$\\simplify[all]{(x+{a}y)(x+{c}y)}=\\;$[[0]]
\nMake sure that you input an expression in your answer such as $xy$ as x*y
.
(Do not include brackets in your answer.)
", "showCorrectAnswer": true, "marks": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "In this example, we look at how you enter algebraic expressions - those involving symbols.
\nThe box next to your input shows what you've written in mathematical notation and is very important as you can check it against the expression you had in mind.
", "tags": ["algebraic expressions", "checked2015", "input", "introduction", "notation", "Numbas", "numbas", "polynomials", "symbols"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "Inputting algebraic expressions into Numbas.
"}, "advice": ""}, {"name": "How to enter algebraic fractions - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "variable_groups": [], "variables": {"b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..15#2)", "name": "b", "description": ""}, "d": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9 except [round(b*c/a),c])", "name": "d", "description": ""}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..16#2)", "name": "a", "description": ""}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)", "name": "c", "description": ""}}, "ungrouped_variables": ["a", "c", "b", "d"], "functions": {}, "parts": [{"prompt": "Examples
\nSuppose we wanted to input the expression $\\displaystyle \\frac{\\var{a}+\\var{b}x}{\\var{c}+\\var{d}y}$ into the system.
\nWhich of the following input expressions are incorrect?
\n[[0]]
\nChoose the incorrect input(s): (You lose 3 marks if you choose the wrong one!)
\nIf you click on Submit part, then on Show feedback, you will be given more detail on your choices.
\nYou can click on Reveal at the top of the window to see solutions, but it's best to work these through yourself. Remember you can always redo the question by clicking on Try another question like this one at the bottom.
", "scripts": {}, "gaps": [{"displayType": "checkbox", "choices": ["({a}+{b}x)/({c}+{d}y)
{a}+{b}x/({c}+{d}y)
{a}+{b}x/{c}+{d}y
({a}+{b}x)/{c}+{d}y
Input the expression $\\displaystyle \\frac{\\var{b}+\\var{a}y}{\\var{d}+\\var{c}z}$ here: [[0]]
", "scripts": {}, "gaps": [{"answer": "({b}+{a}y)/({d}+{c}z)", "vsetrange": [0, 1], "scripts": {}, "answersimplification": "std", "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "checkvariablenames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0}, {"prompt": "Input the expression $\\displaystyle \\frac {\\var{d} z + \\var{b}} {(x + \\var{a}) (y + \\var{c})}$ here: [[0]]
", "scripts": {}, "gaps": [{"answer": "({d} * z + {b}) / ((x + {a}) * (y + {c}))", "vsetrange": [0, 1], "scripts": {}, "answersimplification": "std", "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "checkingaccuracy": 0.001, "checkvariablenames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0}, {"prompt": "Input the expression $\\displaystyle \\simplify[std]{({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 * b}) * (y -{3* d}))}$ here: [[0]]
", "scripts": {}, "gaps": [{"answer": "({a} -(({b} * x + {c}) * e ^ (( -{2}) * x))) / ((x + {2 b}) * (y -{3* d}))", "vsetrange": [0, 1], "scripts": {}, "answersimplification": "std", "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "checkingaccuracy": 0.0001, "checkvariablenames": false, "type": "jme", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "Ratios of Algebraic Expressions.
\nBy this we mean expressions of the form $\\displaystyle \\frac{p(x)}{q(x)}$ where $p(x)$ and $q(x)$ are algebraic expressions.
\nIf you want to input such an expression into the system you HAVE TO BE CAREFUL AND USE BRACKETS otherwise mistakes will occur.
\nOnce again, the box displaying your input in mathematical notation beside the input boxes in parts 2, 3 and 4 is very useful as it shows what the system thinks you have entered.
\nFor complicated expressions this is essential as you can check you have written what you really meant.
", "tags": ["algebraic input", "brackets", "checked2015", "input", "introduction", "mathematical expressions", "numbas", "Numbas", "ratios", "Ratios"], "rulesets": {"std": ["all", "!collectNumbers"]}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Inputting ratios of algebraic expressions.
"}, "advice": "a) The correct input is ({a}+{b}x)/({c}+{d}y)
- the rest are incorrect and you should have ticked those.
b) A correct input is ({b} + {a}y) / ({c} + {d}z)
. Also correct is ({a}y+{b}) / ({c} + {d}z)
etc.
c) A correct input is ({d}z + {b}) / ((x + {a})*(y + {c}))
.
Note the denominator (the bottom of the ratio) has to have two brackets, i.e. ((x + {a})*(y + {c}))
as otherwise the expression ({d}z + {b}) / (x + {a})*(y + {c})
is seen by the system as $\\displaystyle \\left(\\simplify[std]{({d} * z + {b}) / (x + {a})}\\right) (y + \\var{c})$
d) A correct input is ({a} -({b}x + {c})*e ^ ( -{2}x)) / ((x + {2*b})*(y -{3*d}))
Input:
\nInput:
\nInput:
\nFUNCTIONS
\nsin(x)
not sinx
, ln(a)
not lna
.abs(a)
.Here 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", "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:
\nsin(cos({a}x)+{b})
cos(sin({a}x + {b}))
abs((x + {c}) / (x + {d}))
ln(abs((x + {a}) / (x + {d})))
{a}t^({-b})*e^({-c}t)*sin({b}t) + (t + {d}t ^ 3)*e ^ ({c}t)
arctan(({c}y ^ 2 + {d}) / ((y + {a})*(y + {b})))
Find the result of this calculation: (This is an example of a randomised question - the next time you use this example you will probably be given a different calculation to do):
\n$\\var{a}\\times\\var{b}+\\var{c}=\\;$[[0]]
\nYou have to input a whole number - it could be in decimal form. If the answer was $2$ then you could input 2
or 2.0
- try both forms.
Decimals
\nMany calculations will result in numbers which need to be entered in decimal notation, and the question will ask for a certain number of decimal places.
\nOften there is a small tolerance built in so that if you get the result wrong by 1 in the last decimal place then it will be marked as correct. But accuracy is important, so make sure that you get the calculations correct.
\nFor example:
\nInput $\\displaystyle \\frac{\\var{a1}}{\\var{b1}}$ as a decimal correct to 2 decimal places here: [[0]]
\nTry entering the correct value and submitting. Then vary the last decimal place by 1 either way and submitting, and then the last place by 2 either way and submitting.
\nTry putting in the fraction as it is (i.e. $\\var{a1}/\\var{b1}$ ) and see what happens.
\nThe system gives an error message as what you have put in is not a direct representation of a number. But you can always re-enter.
\nSo be careful - always check after submitting your answer that the input field contains the answer that you thought you entered.
", "unitTests": [], "sortAnswers": false, "scripts": {}, "gaps": [{"showCorrectAnswer": true, "allowFractions": false, "customMarkingAlgorithm": "", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "minValue": "{ans1-tol}", "maxValue": "{ans1+tol}", "unitTests": [], "correctAnswerStyle": "plain", "showFeedbackIcon": true, "scripts": {}, "extendBaseMarkingAlgorithm": true, "type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "variableReplacements": [], "marks": 1, "mustBeReducedPC": 0}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "showFeedbackIcon": true}, {"showCorrectAnswer": true, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "Fractions
\nYou will find that some questions may ask you to input fractions and not decimals.
\nFor example, find the following sum as a fraction:
\n$\\displaystyle \\frac{1}{\\var{a1}}+\\frac{1}{\\var{b1}}=\\;$[[0]]
\n(input as a fraction and not a decimal)
\nHint: the answer is {a1+b1}/{a1*b1}
\nTry inputting the decimal version of this to as many places as you like (for example given by the calculator on the PC - you can copy this from the calculator and paste into the input field) and see what happens.
", "unitTests": [], "sortAnswers": false, "scripts": {}, "gaps": [{"answer": "{a1+b1}/{a1*b1}", "vsetRangePoints": 5, "notallowed": {"message": "Simplify into a single fraction. Do not enter as a decimal.
", "showStrings": false, "partialCredit": 0, "strings": ["+", "."]}, "checkingType": "absdiff", "vsetRange": [0, 1], "showFeedbackIcon": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "expectedVariableNames": [], "variableReplacements": [], "failureRate": 1, "musthave": {"message": "Input as a fraction.
", "showStrings": false, "partialCredit": 0, "strings": ["/"]}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showPreview": true, "checkVariableNames": false, "unitTests": [], "scripts": {}, "answerSimplification": "all, fractionNumbers", "showCorrectAnswer": true, "marks": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "showFeedbackIcon": true}, {"marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "scripts": {}, "customMarkingAlgorithm": "", "type": "information", "prompt": "As this question is in practice mode, if you click on the Reveal answers button all of the question fields are filled with the correct answers. Also, if available, there will be a full solution given under the heading Advice. Just scroll down to see this. However, there is no advice available for this question as it is not needed.
\nFinally as you are in practice mode, if you click on the Try another question like this one button at the bottom you will get this question again but with different numbers (usually!), and you can try it again. This is true for all practice mode questions which are randomised.
", "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "variableReplacements": [], "unitTests": []}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "In this example we show how to enter numbers, either as
\nDetails on inputting numbers into Numbas.
"}, "advice": "No advice available.
"}, {"name": "How to enter numbers and algebraic symbols - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "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/"}], "variable_groups": [], "variables": {}, "ungrouped_variables": [], "functions": {}, "preamble": {"css": "", "js": ""}, "parts": [{"customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "Questions are often split into parts. In each part you will see various input fields for your answers.
\nThis is the first part and contains one question for you to answer. It will be clear from the question what you need to enter in each field.
\nFor example, a question could be:
\n$2+2=\\;$[[0]] (enter a number)
\nYou are expected to enter the answer and then press the Submit part button. Try it. Enter the correct value and press Submit part - a tick appears. Brilliant!!
\nNow enter an incorrect value. Press Submit part and a cross appears. Note the feedback underneath the button - in this case there is not much to say!
\nThis is the sort of feedback you get in practice mode.
\nTry putting in 2+2
as your answer and see what happens as well. You will be given an error message; click on OK and continue. So you must be careful and always check that the answer in the input field is what you expect it to be before you move on.
Pressing the Reveal answers button gives you the answers for all parts and usually also gives you a full solution for each part. This is only available in practice mode and certainly not available in a real assessment.
\nAlso note that in practice mode you have available a button at the bottom, Try another question like this one. This is useful for you to try other versions of the question. This question is not randomised, so you will get the same one back again!
", "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "gaps": [{"correctAnswerFraction": false, "allowFractions": false, "customMarkingAlgorithm": "", "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "minValue": "4", "maxValue": "4", "unitTests": [], "correctAnswerStyle": "plain", "showFeedbackIcon": true, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "type": "numberentry", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 1, "mustBeReducedPC": 0}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "sortAnswers": false}, {"customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "This is the second part of this example and it contains 2 questions. You enter your answers for both and then press Submit part.
\nNote that your input in mathematical notation is displayed next to your input so you can check it has been interpreted correctly.
\n$x+x=\\;$[[0]] (Enter a multiple of $x$ )
\nEnter your answer as 2*x
. You could just enter 2x
without the *
for all multiplications as there are some cases where it is necessary in order to avoid ambiguity.
Simplify the following expression. Once again you see your input rendered in the best possible mathematical notation next to where you type. This check becomes more important when you input more complicated expressions.
\n$2x-x+y-2y=\\;$[[1]]
\nTry getting one right and one wrong and see the sort of feedback you get (the grey tick indicates that you have some, but not all, of the available marks). Also try inputting x+x
for the answer to the first question in this part and see what happens after you submit.
Note the red exclamation marks next to the input field when you enter something the system does not like or you have pressed Submit part without answering the question. Move the cursor over the mark and you will get a message saying what the problem is.
\nThe Submit all parts button at the bottom allows you to answer everything in the question at once without submitting each part separately. In this case, the answers in both parts will be submitted.
", "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "gaps": [{"answer": "2*x", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "checkingType": "absdiff", "extendBaseMarkingAlgorithm": true, "expectedVariableNames": [], "notallowed": {"showStrings": false, "message": "Simplify the expression please!
", "strings": ["+"], "partialCredit": 0}, "unitTests": [], "checkVariableNames": false, "vsetRange": [0, 1], "marks": 1, "showFeedbackIcon": true, "scripts": {}, "vsetRangePoints": 5, "type": "jme", "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "showPreview": true, "variableReplacements": [], "failureRate": 1}, {"answer": "x-y", "showCorrectAnswer": true, "customMarkingAlgorithm": "", "checkingType": "absdiff", "extendBaseMarkingAlgorithm": true, "expectedVariableNames": [], "notallowed": {"showStrings": false, "message": "Simplify further!
", "strings": ["+"], "partialCredit": 0}, "unitTests": [], "checkVariableNames": false, "vsetRange": [0, 1], "marks": 1, "showFeedbackIcon": true, "scripts": {}, "vsetRangePoints": 5, "type": "jme", "variableReplacementStrategy": "originalfirst", "checkingAccuracy": 0.001, "showPreview": true, "variableReplacements": [], "failureRate": 1}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "sortAnswers": false}], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "This example explains how you enter your answers and submit them.
\nThis example and the others are in practice mode - you will be given information on whether or not you have the answer correct or not.
\nIf you use Numbas for a real assessment, it does not give you this information.
\nIt is very important that you submit all your answers. If you do not your results will not be recorded. Note that the list of questions in the exam on the left of the window gives information on whether or not you have completed a question.
\nGo to the next question. You can then come back. Note that until you quit the exam for good you can go back to any question and change your answers if you want to.
", "tags": ["answers", "checked2015", "entering", "fields", "input", "introduction", "mathematical notation", "Numbas", "numbas", "parts", "practice mode", "reveal", "submit"], "rulesets": {}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Entering numbers and algebraic symbols in Numbas.
"}, "advice": ""}, {"name": "How to enter powers - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "parts": [{"scripts": {}, "gaps": [{"answer": "e^({a+b}*x)", "vsetrange": [0, 0.1], "checkingaccuracy": 1e-05, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "all", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "To test your input of powers try the following examples:
\nInput 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.)
\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 on your answer.
\nClick on the input field and edit your answer by inputting without brackets around the powers to see what happens.
\n\n
", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"answer": "x^({c+d})", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "all", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "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]]
", "showCorrectAnswer": true, "marks": 0}, {"scripts": {}, "gaps": [{"answer": "x^{f}*y^{f}", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "notallowed": {"message": "Input in the form $x^a*y^b$ for suitable values of $a$ and $b$.
", "showStrings": false, "partialCredit": 0, "strings": ["xy", "x*y"]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "answersimplification": "all", "type": "jme", "showCorrectAnswer": true, "marks": 1, "vsetrangepoints": 5}], "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]]
", "showCorrectAnswer": true, "marks": 0}], "variables": {"b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(6..12 except a)*s", "description": "", "name": "b"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(6..12)*s", "description": "", "name": "a"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-12..-6)", "description": "", "name": "c"}, "s": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "name": "s"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-12..-6)", "description": "", "name": "d"}, "f": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-5,-4,-3,-2,-1)", "description": "", "name": "f"}}, "ungrouped_variables": ["a", "c", "b", "d", "f", "s"], "variable_groups": [], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "showQuestionGroupNames": false, "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "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.
\nThe 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.
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:
\nPower | Correct Input | Incorrect Input |
---|---|---|
$e^{2x}$ | \ne^(2*x) | \ne^2*x (system thinks this is $e^2 \\times x$) | \n
$(xy)^2$ | \n(x*y)^2 | \nx*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.
", "tags": ["brackets", "checked2015", "input", "introduction", "Numbas", "numbas", "powers"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "Information on inputting powers
"}, "advice": ""}], "pickingStrategy": "all-ordered"}], "navigation": {"browse": true, "showfrontpage": false, "preventleave": true, "onleave": {"message": "You haven't submitted all your answers on this page.", "action": "none"}, "reverse": true, "allowregen": true, "showresultspage": "never"}, "timing": {"timedwarning": {"message": "", "action": "none"}, "timeout": {"message": "", "action": "none"}, "allowPause": true}, "contributors": [{"name": "Henrik Skov Midtiby", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/829/"}], "custom_part_types": []}