// Numbas version: exam_results_page_options {"name": "Negative Numbers", "feedback": {"intro": "", "showtotalmark": true, "advicethreshold": 0, "allowrevealanswer": true, "feedbackmessages": [], "showanswerstate": true, "showactualmark": true}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "allQuestions": true, "shuffleQuestions": true, "percentPass": "40", "duration": 0, "pickQuestions": "12", "navigation": {"onleave": {"action": "warnifunattempted", "message": "

You haven't finished answering this! Are you sure you want to leave?

"}, "reverse": true, "allowregen": true, "showresultspage": "oncompletion", "preventleave": true, "browse": true, "showfrontpage": true}, "metadata": {"description": "

This is to test your knowledge of adding, subtracting, multiplying and dividing negative numbers.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "exam", "questions": [], "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "random-subset", "pickQuestions": 12, "questions": [{"name": "Negatives: adding negative numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": ["Addition", "addition", "negative numbers", "Negative Numbers", "negatives"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Complete the following without the use of a calculator:

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "n[0]+n[1]", "description": "", "templateType": "anything", "can_override": false}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "n[2]+n[3]", "description": "", "templateType": "anything", "can_override": false}, "ans3": {"name": "ans3", "group": "Ungrouped variables", "definition": "n[4]+n[5]+n[6]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "shuffle(-12..-2)[0..7]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "ans1", "ans2", "ans3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{n[0]}\\var{n[1]}$ = [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Visualising the number line is quite helpful for these questions.

\n
\n

We can think of being at $\\var{n[0]}$ on the number line and then moving another $\\var{-n[1]}$ to the left. Now we are at $\\var{ans1}$.

\n

Alternatively, imagine being in an elevator $\\var{-n[0]}$ floors below ground and then going another $\\var{-n[1]}$ floors further down. You would be $\\var{-ans1}$ floors below ground.

"}], "gaps": [{"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, "minValue": "{ans1}", "maxValue": "{ans1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{n[2]}+(\\var{n[3]})$ = [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

This is actually the same process as the last question. We can use the number line/elevator or we can think of a negative number as a debt.

\n
\n

We can think of $\\var{n[2]}$ as being in debt by \\${-n[2]}. Suppose we then add another debt of \\${-n[3]}. Now we are in debt by \\${-ans2}. That is, $\\var{n[2]}+(\\var{n[3]})=\\var{ans2}$.

\n

"}], "gaps": [{"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, "minValue": "{ans2}", "maxValue": "{ans2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{n[4]}+\\var{n[5]}+(\\var{n[6]})$ = [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

This is actually the same process as the last question. We can use the number line/elevator or we can think of a negative number as a debt.

\n
\n

We can think of $\\var{n[4]}$ as being in debt by \\${-n[4]}. Suppose we then add another debt of \\${-n[5]}. Now we are in debt by \\${-n[4]-n[5]}. Then we add another debt of \\${-n[6]} and we are in debt by \\${-ans3}. That is, $\\var{n[4]}+\\var{n[5]}+(\\var{n[6]})=\\var{ans3}$

\n

"}], "gaps": [{"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, "minValue": "{ans3}", "maxValue": "{ans3}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Negatives: subtracting negative numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": ["negative numbers", "Negative Numbers", "negatives", "subtraction"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Complete the following without the use of a calculator:

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "n[0]-n[1]", "description": "", "templateType": "anything", "can_override": false}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "n[2]-n[3]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "shuffle(-12..-2)[0..4]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "ans1", "ans2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{n[0]}-(\\var{n[1]})$ = [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Thinking about negative numbers as debt can help you understand these questions.

\n
\n

We can think of $\\var{n[0]}$ as being in debt by \\${-n[0]}. Suppose we then 'take away' another debt of \\${-n[1]}, that is, we pay back \\${-n[1]}. Now we are only in debt actually in front by \\${abs(ans1)}. That is, $\\var{n[0]}-(\\var{n[1]})=\\var{ans1}$.

\n
\n

Another way is to think of the minus sign as going in the reverse direction. 

\n
\n

Suppose on the number line we are at $\\var{n[0]}$, and now instead of going another $\\var{-n[1]}$ to the left (which we would do if we were doing $\\var{n[0]}+(\\var{n[1]})$) we have to go the opposite way, we have to move $\\var{-n[1]}$ to the right (which is the same as $\\var{n[0]}+\\var{-n[1]}$, and we end up at $\\var{ans1}$.

\n
\n

\n

In general two negative symbols next to each other are the same as a positive symbol. 

\n

\\[++=+\\]

\n

\\[+-=-\\]

\n

\\[-+=-\\]

\n

\\[--=+\\]

\n

Any even number of negative symbols will be the same as a positive symbol. For example,

\n

\\[-----=+-=-\\]

"}], "gaps": [{"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, "minValue": "{ans1}", "maxValue": "{ans1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{n[2]}-\\var{n[3]}$ = [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

This is actually the same process as the last question. The lack of brackets doesn't affect this question.

\n
\n

Thinking about negative numbers as debt can help you understand these questions.

\n
\n

We can think of $\\var{n[2]}$ as being in debt by \\${-n[2]}. Suppose we then 'take away' another debt of \\${-n[3]}, that is, we pay back \\${-n[3]}. Now we are only in debt actually in front by \\${abs(ans2)}. That is, $\\var{n[2]}-(\\var{n[3]})=\\var{ans2}$.

\n
\n

Another way is to think of the minus sign as going in the reverse direction. 

\n
\n

Suppose on the number line we are at $\\var{n[2]}$, and now instead of going another $\\var{-n[3]}$ to the left (which we would do if we were doing $\\var{n[2]}+(\\var{n[3]})$) we have to go the opposite way, we have to move $\\var{-n[3]}$ to the right (which is the same as $\\var{n[2]}+\\var{-n[3]}$, and we end up at $\\var{ans2}$.

\n
\n

\n

In general two negative symbols next to each other is the same as a positive symbol. 

\n

\\[++=+\\]

\n

\\[+-=-\\]

\n

\\[-+=-\\]

\n

\\[--=+\\]

\n

Any even number of negative symbols will be the same as a positive symbol. For example,

\n

\\[-----=+-=-\\]

"}], "gaps": [{"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, "minValue": "{ans2}", "maxValue": "{ans2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Negatives: dividing negative numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": ["Dividing", "dividing", "division", "negative numbers", "Negative Numbers", "negatives"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Complete the following without the use of a calculator:

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"d": {"name": "d", "group": "Ungrouped variables", "definition": "n[2..4]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "shuffle([-13,-11,-7,-5,-3,-2])[0..4]", "description": "", "templateType": "anything", "can_override": false}, "choices_a": {"name": "choices_a", "group": "Ungrouped variables", "definition": "[\n '$\\\\displaystyle\\\\frac{\\\\var{n[0]}}{\\\\var{d[0]}}$',\n '$\\\\displaystyle\\\\frac{\\\\var{-n[0]}}{\\\\var{-d[0]}}$',\n '$\\\\var{-n[0]}\\\\div\\\\var{-d[0]}\\\\phantom{\\\\dfrac{1}{1}}$',\n \n '$\\\\displaystyle\\\\frac{\\\\var{-n[0]}}{\\\\var{d[0]}}$',\n '$\\\\displaystyle\\\\frac{\\\\var{n[0]}}{\\\\var{-d[0]}}$',\n '$\\\\displaystyle-\\\\frac{\\\\var{-n[0]}}{\\\\var{-d[0]}}$'\n]", "description": "", "templateType": "anything", "can_override": false}, "choices_b": {"name": "choices_b", "group": "Ungrouped variables", "definition": "[\n '$\\\\displaystyle\\\\frac{\\\\var{n[1]}}{\\\\var{d[1]}}$',\n '$\\\\displaystyle\\\\frac{\\\\var{-n[1]}}{\\\\var{-d[1]}}$',\n '$\\\\var{-n[1]}\\\\div\\\\var{-d[1]}\\\\phantom{\\\\dfrac{1}{1}}$',\n \n '$\\\\displaystyle\\\\frac{\\\\var{-n[1]}}{\\\\var{d[1]}}$',\n '$\\\\displaystyle\\\\frac{\\\\var{n[1]}}{\\\\var{-d[1]}}$',\n '$\\\\displaystyle-\\\\frac{\\\\var{-n[1]}}{\\\\var{-d[1]}}$'\n]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "d", "choices_a", "choices_b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which of the following are equal to $(\\var{n[0]})\\div(\\var{d[0]})$?

", "stepsPenalty": "3", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Dividing negative numbers can be done by pretending the numbers are positive, doing the division, and then determining whether the actual answer should be positive or negative. 

\n

It is also crucial to realise division can be written as a fraction. 

\n
\n

Consider $(\\var{n[0]})\\div(\\var{d[0]})$. Let's move the negatives out the front to get $--\\var{-n[0]}\\div\\var{-d[0]}$, we can just do the division and get $--\\frac{\\var{-n[0]}}{\\var{-d[0]}}$, but this is the same as $\\frac{\\var{-n[0]}}{\\var{-d[0]}}$.

\n
\n

In general two negatives divided results in a positive. 

\n

\\[\\frac{+}{+}=+\\]

\n

\\[\\frac{+}{-}=-\\]

\n

\\[\\frac{-}{+}=-\\]

\n

\\[\\frac{-}{-}=+\\]

\n

This should not be surprising given that division is just multiplying by the reciprocal.

\n

"}], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": "{choices_a}", "matrix": "[1,1,1,-1,-1,-1]"}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which of the following are equal to $\\var{n[1]}\\div\\var{-d[1]}$?

", "stepsPenalty": "3", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Dividing negative numbers can be done by pretending the numbers are positive, doing the division, and then determining whether the actual answer should be positive or negative. 

\n

It is also crucial to realise division can be written as a fraction. 

\n
\n

Consider $\\var{n[1]}\\div\\var{-d[1]}$. This will be the same as $-\\frac{\\var{-n[1]}}{\\var{-d[1]}}$, and $\\frac{\\var{n[1]}}{\\var{-d[1]}}$, and even the strange looking $\\frac{\\var{-n[1]}}{\\var{d[1]}}$.

\n
\n

In general two negatives divided results in a positive. 

\n

\\[\\frac{+}{+}=+\\]

\n

\\[\\frac{+}{-}=-\\]

\n

\\[\\frac{-}{+}=-\\]

\n

\\[\\frac{-}{-}=+\\]

\n

This should not be surprising given that division is just multiplying by the reciprocal.

"}], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": 0, "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": "{choices_b}", "matrix": "[-1,-1,-1,1,1,1]"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Negatives: multiplying negative numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "tags": ["multiplication", "multiplying", "negative numbers", "Negative Numbers", "negatives"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Complete the following without the use of a calculator:

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "n[0]*n[1]", "description": "", "templateType": "anything", "can_override": false}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "n[2]*n[3]", "description": "", "templateType": "anything", "can_override": false}, "ans3": {"name": "ans3", "group": "Ungrouped variables", "definition": "m[0]*m[1]*m[2]", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "shuffle([-1,-2,-3,-4,-5,-10,-20])[0..3]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "shuffle(-12..-2)[0..4]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "ans1", "ans2", "ans3", "m"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$(\\var{n[0]})\\times(\\var{n[1]})$ = [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Consider $(\\var{n[0]})\\times (\\var{n[1]})$. Let's move the negatives out the front to get $--\\var{-n[0]}\\times \\var{-n[1]}$, we can just do the multiplication and get $--\\var{ans1}$, but this is the same as $\\var{ans1}$.

\n

In essence, we work out the numbers and the signs separately.

\n
\n

In general two negatives multiplied results in a positive. 

\n

\\[+\\times+=+\\]

\n

\\[+\\times-=-\\]

\n

\\[-\\times+=-\\]

\n

\\[-\\times-=+\\]

\n

Any even number of negative symbols will be the same as a positive symbol and any odd number of negative symbols will be the same as a negative symbol. For example,

\n

\\[-\\times-\\times-\\times-\\times-=+\\times-=-\\]

"}], "gaps": [{"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, "minValue": "{ans1}", "maxValue": "{ans1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$\\var{n[2]}\\times (\\var{n[3]})$ = [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

This is actually the same process as the last question. The lack of brackets doesn't affect this question.

\n
\n

Consider $(\\var{n[2]})\\times (\\var{n[3]})$. Let's move the negatives out the front to get $--\\var{-n[2]}\\times \\var{-n[3]}$, we can just do the multiplication and get $--\\var{ans2}$, but this is the same as $\\var{ans2}$.

\n

In essence, we work out the numbers and the signs separately.

\n
\n

In general two negatives multiplied results in a positive. 

\n

\\[+\\times+=+\\]

\n

\\[+\\times-=-\\]

\n

\\[-\\times+=-\\]

\n

\\[-\\times-=+\\]

\n

Any even number of negative symbols will be the same as a positive symbol and any odd number of negative symbols will be the same as a negative symbol. For example,

\n

\\[-\\times-\\times-\\times-\\times-=+\\times-=-\\]

"}], "gaps": [{"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, "minValue": "{ans2}", "maxValue": "{ans2}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$(\\var{m[0]})(\\var{m[1]})(\\var{m[2]})$ = [[0]]

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Recall that $(\\var{m[0]})(\\var{m[1]})(\\var{m[2]})$ is a way of writing $(\\var{m[0]})\\times(\\var{m[1]})\\times(\\var{m[2]})$.

\n
\n

Let's move the negatives out the front to get $---\\var{-m[0]}\\times \\var{-m[1]}\\times \\var{-m[2]}$, we can just do the multiplication and get $---\\var{-ans3}$, but this is the same as $\\var{ans3}$.

\n

In essence, we work out the numbers and the signs separately.

\n
\n

In general two negatives multiplied results in a positive. 

\n

\\[+\\times+=+\\]

\n

\\[+\\times-=-\\]

\n

\\[-\\times+=-\\]

\n

\\[-\\times-=+\\]

\n

Any even number of negative symbols will be the same as a positive symbol and any odd number of negative symbols will be the same as a negative symbol. For example,

\n

\\[-\\times-\\times-\\times-\\times-=+\\times-=-\\]

"}], "gaps": [{"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, "minValue": "{ans3}", "maxValue": "{ans3}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "contributors": [{"name": "Rachel Staddon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/901/"}], "extensions": [], "custom_part_types": [], "resources": []}