Entering numbers and algebraic symbols in Numbas.

"}, "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/", "name": "Chris Graham"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/", "name": "Newcastle University Mathematics and Statistics"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/", "name": "Xiaodan Leng"}], "advice": "", "name": "How to enter numbers and algebraic symbols - Getting Started", "functions": {}, "ungrouped_variables": [], "type": "question", "tags": ["answers", "checked2015", "entering", "fields", "input", "introduction", "mathematical notation", "Numbas", "numbas", "parts", "practice mode", "reveal", "submit"], "parts": [{"unitTests": [], "scripts": {}, "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!!

Now 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!

This 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.

Also 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!

This is the second part of this example and it contains 2 questions. You enter your answers for both and then press *Submit part*.

Note 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.

The *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.

Simplify the expression please!

", "showStrings": false}, "expectedVariableNames": [], "answer": "2*x", "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "type": "jme", "checkingType": "absdiff", "checkVariableNames": false, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "vsetRange": [0, 1], "scripts": {}, "customMarkingAlgorithm": "", "marks": 1, "showFeedbackIcon": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showPreview": true}, {"failureRate": 1, "notallowed": {"partialCredit": 0, "strings": ["+"], "message": "Simplify further!

", "showStrings": false}, "expectedVariableNames": [], "answer": "x-y", "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "type": "jme", "checkingType": "absdiff", "checkVariableNames": false, "checkingAccuracy": 0.001, "showCorrectAnswer": true, "vsetRange": [0, 1], "scripts": {}, "customMarkingAlgorithm": "", "marks": 1, "showFeedbackIcon": true, "unitTests": [], "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showPreview": true}], "variableReplacements": []}], "rulesets": {}, "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.

If 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.

", "variable_groups": [], "preamble": {"js": "", "css": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "variables": {}}], "pickingStrategy": "all-ordered"}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/", "name": "Chris Graham"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/", "name": "Newcastle University Mathematics and Statistics"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/", "name": "Xiaodan Leng"}]}