// Numbas version: exam_results_page_options {"name": "An Introduction to Numbas", "metadata": {"description": "", "licence": "None specified"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", "", ""], "questions": [{"name": "Numbas - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ahmed Al-Razaz", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4865/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

This lab will introduce you to Numbas and teach you how to enter your answers correctly.

\n

Labs and formal tests that you complete in Numbas will be marked as soon as you finish the questions.

\n

Although recommended, you do not have to complete a lab or homework in one go. You can save your progress by pressing the ‘Pause’ button on the left-hand side of the screen.

\n

To submit your answer press the 'submit answer' button.

\n

To see the worked solution press the 'reveal answers' button

\n

Answer the following question and submit your answer:

", "advice": "

1+1=2

", "rulesets": {}, "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

1 + 1 =

", "minValue": "2", "maxValue": "2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "'try another like this one' - Getting Started", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ahmed Al-Razaz", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4865/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Some of the questions will have different variations.

\n

To attempt a question again with different numbers, press the 'try another like this one' button.

\n

 

\n

Complete this question and then try another one:

\n

 

\n

", "advice": "

{A} + {B} = {C}

", "rulesets": {}, "variables": {"A": {"name": "A", "group": "Ungrouped variables", "definition": "random(0 .. 100#1)", "description": "", "templateType": "randrange"}, "B": {"name": "B", "group": "Ungrouped variables", "definition": "random(0 .. 100#1)", "description": "", "templateType": "randrange"}, "C": {"name": "C", "group": "Ungrouped variables", "definition": "A+B", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["A", "B", "C"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

{A} + {B} =

", "minValue": "C", "maxValue": "C", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Number entry - Getting Started ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ahmed Al-Razaz", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4865/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

To enter a fraction you must put a forward slash (/) between the numerator and the denominator

\n

e.g.,  ,$\\frac{3}{5}$= 3/5 

\n

For fractions with more than one term, the numerator and the denominator need to be in brackets

\n

e.g.,  $\\frac{3+2x}{5+y}$ = (3+2x)/(5+5y)

\n

Complete the following calculations and display the correct answer as a fraction in its simplest form:

", "advice": "

To add fractions there are Three Simple Steps:

\n
\n\n

Answer (a):

\n

$\\frac{1}{4}$ + $\\frac{1}{4}$

\n
\n

Step 1. The bottom numbers (the denominators) are already the same. Go straight to step 2.

\n
\n

Step 2. Add the top numbers and put the answer over the same denominator:

\n
\n

$\\frac{1+1}{4}$ = $\\frac{2}{4}$ 

\n

Step 3. Simplify the fraction:

\n

Hint: divide the top and bottom by 2.

\n
\n
\n

$\\frac{1}{2}$ 

\n

In picture form it looks like this:

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\frac{1}{4}$+$\\frac{1}{4}$=$\\frac{2}{4}$=$\\frac{1}{2}$
\"1/4\" \"1/4\" \"2/4\" \"1/2\"
\n

... and do you see how $\\frac{2}{4}$ is simpler as $\\frac{1}{2}$

\n

\n

Answer (b):

\n
\n

Step 1. The denominators are already the same. Go straight to step 2.

\n
\n

Step 2. Add the top expressions and put the answer over the same denominator:

\n
\n

$\\frac{6x+9y}{7y+2}$ 

\n

Step 3. Simplify the fraction: the fraction is already as simple as possible!   

\n
\n

\n
", "rulesets": {}, "variables": {"num": {"name": "num", "group": "Ungrouped variables", "definition": "1/2", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["num"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\frac{1}{4}$ + $\\frac{1}{4}$ 

", "minValue": "num", "maxValue": "num", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": "50", "showFractionHint": true, "notationStyles": ["plain"], "correctAnswerStyle": "plain"}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\frac{6x}{7y+2}$ + $\\frac{9y}{7y+2}$ 

", "answer": "(6x+9y)/(7y+2) ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "How to enter numbers - 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": {"tol": {"templateType": "anything", "group": "Ungrouped variables", "definition": "0.01", "description": "", "name": "tol"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2,3,4,5,6,8,9,10,12)", "description": "", "name": "a1"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..9)", "description": "", "name": "b"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "name": "c"}, "b1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(7,11,13)", "description": "", "name": "b1"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "name": "a"}, "ans1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "precround(a1/b1,2)", "description": "", "name": "ans1"}}, "ungrouped_variables": ["a", "c", "b", "ans1", "a1", "b1", "tol"], "functions": {}, "parts": [{"showCorrectAnswer": true, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "prompt": "

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]]

\n

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

", "unitTests": [], "sortAnswers": false, "scripts": {}, "gaps": [{"showCorrectAnswer": true, "allowFractions": false, "customMarkingAlgorithm": "", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "minValue": "a*b+c", "maxValue": "a*b+c", "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": "

Decimals

\n

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

\n

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

\n

For example: 

\n

Input $\\displaystyle \\frac{\\var{a1}}{\\var{b1}}$ as a decimal correct to 2 decimal places here: [[0]]

\n

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

\n

Try putting in the fraction as it is (i.e. $\\var{a1}/\\var{b1}$ ) and see what happens. 

\n

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

\n

So 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

\n

You will find that some questions may ask you to input fractions and not decimals.

\n

For 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)

\n

Hint: the answer is {a1+b1}/{a1*b1}

\n

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

\n

Finally 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 

\n
    \n
  1. Whole numbers (integers).
  2. \n
  3. Decimals (to a number of decimal places)
  4. \n
  5. Fractions
  6. \n
", "tags": ["checked2015", "Decimals", "decimals", "Fractions", "fractions", "input", "introduction", "numbas", "Numbas", "numbers", "tolerance", "whole numbers"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Details on inputting numbers into Numbas.

"}, "advice": "

No advice available.

"}, {"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:

\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

 

", "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$.

\n

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

\n

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

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

", "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": ""}, {"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.

\n

Try this:

\n

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

\n

Expand the brackets and input the resulting expression:

\n

$\\simplify[all]{(x+{a}y)(x+{c}y)}=\\;$[[0]]

\n

Make sure that you input an expression in your answer such as $xy$ as x*y.

\n

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

\n

The 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

\n

Suppose we wanted to input the expression  $\\displaystyle \\frac{\\var{a}+\\var{b}x}{\\var{c}+\\var{d}y}$ into the system.

\n

Which of the following input expressions are incorrect?

\n

[[0]]

\n

Choose the incorrect input(s): (You lose 3 marks if you choose the wrong one!)

\n

If you click on Submit part, then on Show feedback, you will be given more detail on your choices.

\n

You 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

"], "showCorrectAnswer": true, "matrix": [-3, 1, 1, 1], "distractors": ["This is the correct input, so your choice is wrong!", "Good choice as the system thinks this is $\\simplify[std]{ {a}+{b}x/({c}+{d}y)}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$", "Good choice as the system thinks this is $\\simplify[std]{ {a}+{b}x/{c}+{d}y}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$", "Good choice as the system thinks this is $\\simplify[std]{ ({a}+{b}x)/{c}+{d}y}$ and not $\\simplify[std]{ ({a}+{b}x)/({c}+{d}y)}$"], "variableReplacements": [], "type": "m_n_2", "maxAnswers": 0, "shuffleChoices": true, "warningType": "none", "scripts": {}, "minMarks": 0, "minAnswers": 0, "maxMarks": 0, "variableReplacementStrategy": "originalfirst", "displayColumns": 1, "marks": 0}], "type": "gapfill", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "variableReplacements": [], "marks": 0}, {"prompt": "

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.

\n

By this we mean expressions of the form $\\displaystyle \\frac{p(x)}{q(x)}$ where $p(x)$ and $q(x)$ are algebraic expressions.

\n

If you want to input such an expression into the system you HAVE TO BE CAREFUL AND USE BRACKETS otherwise mistakes will occur.

\n

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

\n

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

\n

b) A correct input is ({b} + {a}y) / ({c} + {d}z). Also correct is ({a}y+{b}) / ({c} + {d}z) etc.

\n

c) A correct input is ({d}z + {b}) / ((x + {a})*(y + {c})).

\n

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})$

\n

d) A correct input is ({a} -({b}x + {c})*e ^ ( -{2}x)) / ((x + {2*b})*(y -{3*d}))

"}]}], "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "contributors": [{"name": "Radu Dragomir Manac", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2821/"}, {"name": "Ahmed Al-Razaz", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4865/"}], "extensions": [], "custom_part_types": [], "resources": []}