// Numbas version: exam_results_page_options {"name": "Negatives", "feedback": {"showtotalmark": true, "advicethreshold": 0, "showanswerstate": true, "showactualmark": true, "allowrevealanswer": true}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "allQuestions": true, "shuffleQuestions": false, "percentPass": 0, "duration": 0, "pickQuestions": 0, "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "showresultspage": "oncompletion", "preventleave": true, "browse": true, "showfrontpage": true}, "metadata": {"description": "

Dealing with adding, subtracting, multiplying, dividing, and taking powers of negative numbers.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "exam", "questions": [], "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Negatives: subtraction resulting in a negative number", "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": ["Arithmetic", "arithmetic", "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": {"small": {"name": "small", "group": "Ungrouped variables", "definition": "random(2..9)", "description": "", "templateType": "anything", "can_override": false}, "big": {"name": "big", "group": "Ungrouped variables", "definition": "random(12..19)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "small-big", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ans", "small", "big"], "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{small} - \\var{big}$ = [[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": "

When you are doing a subtraction that will result in a negative (that is, you are 'taking away' more than you have), many people reverse the order of the subtraction to make it easier and then put a negative in front of the answer.

\n
\n

For example, to determine $\\var{small}-\\var{big}$. We can see the answer will be a negative number (since $\\var{big}$ is bigger than $\\var{small}$). Let's do the related subtraction $\\var{big}-\\var{small}$ first. Here are two common methods:

\n\n

Regardless, we find that $\\var{big}-\\var{small}=\\var{-ans}$ and so our answer to the original question is $\\var{small}-\\var{big}=\\var{ans}$.

\n

\n
\n

Why does this work? If you have seen brackets before the following explains it

\\[\\var{small}-\\var{big}=-(\\var{big}-\\var{small})\\]

\n

If this doesn't help, recall a subtraction tells you the difference between two numbers, it is the distance between two numbers on the number line, if you swap the numbers around in the subtraction you will cover the same distance on the number line just heading in the opposition direction. So if you know the answer will be negative, you can swap the numbers around, do the easier subtraction and then put a negative in front of your answer.

"}], "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": "{ans}", "maxValue": "{ans}", "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: 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: 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"}, {"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: powers of 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": ["exponents", "indices", "negative numbers", "Negative Numbers", "negatives", "powers"], "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]^2", "description": "", "templateType": "anything", "can_override": false}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "n[1]^2", "description": "", "templateType": "anything", "can_override": false}, "ans3": {"name": "ans3", "group": "Ungrouped variables", "definition": "m^3", "description": "", "templateType": "anything", "can_override": false}, "ans4": {"name": "ans4", "group": "Ungrouped variables", "definition": "(-1)^p", "description": "", "templateType": "anything", "can_override": false}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(-5..-1)", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "shuffle(-12..-2)[0..2]", "description": "", "templateType": "anything", "can_override": false}, "p": {"name": "p", "group": "Ungrouped variables", "definition": "random(4..12)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "ans1", "ans2", "m", "ans3", "ans4", "p"], "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]}^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": "

Here the square is acting only on the number and not on the negative sign. So you square the number first and then take the negative. That is, $\\var{n[0]}^2=-(\\var{-n[0]})^2=-(\\var{-n[0]}\\times\\var{-n[0]})=-\\var{-ans1}$.

\n

\n

Note

\n

\\[\\var{n[0]}^2\\ne (\\var{n[0]})^2\\]

"}], "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[1]})^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": "

Here we have the square acting on a negative number. When two negatives are multiplied together the result is a positive number. 

\n

This means when a negative number is squared the result is positive.

\n

In particular, $(\\var{n[1]})^2=(\\var{n[1]})\\times(\\var{n[1]})=\\var{ans2}$.

\n

Note

\n

\\[\\var{n[1]}^2\\ne (\\var{n[1]})^2\\]

"}], "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[1]})^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": "

Deal with the squaring of the negative number first (which results in a positive) and then deal with the negative outside the brackets. 

\n

That is, $-(\\var{n[1]})^2=-(\\var{n[1]}\\times\\var{n[1]})=-(\\var{ans2})=\\var{-ans2}$

\n

Note

\n

\\[-(\\var{n[1]})^2\\ne \\var{-n[1]}^2\\]

"}], "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})^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": "

\n

We have $(\\var{m})^3$. Recall this is the same as $(\\var{m})\\times(\\var{m})\\times(\\var{m})$. Here we have three negative symbols, two give a positive and the remaining negative makes the result negative, that is,

\n

\\[(\\var{m})^3=\\var{ans3}\\]

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

$(-1)^\\var{p}$ = [[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": "

Any even power of a negative number will have an even number of negatives multiplied together. This will then result in a positive number.

\n

Any odd power of a negative number will have an odd number of negatives multiplied together. This will then result in a negative number.

"}], "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": "{ans4}", "maxValue": "{ans4}", "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: combined question", "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/"}], "functions": {}, "ungrouped_variables": ["n", "power", "mult1", "mult2", "ans1"], "tags": ["negative numbers", "Negative Numbers", "negatives"], "advice": "", "rulesets": {}, "parts": [{"prompt": "

$\\displaystyle\\var{n[0]}-(\\var{n[1]})--\\var{n[2]}\\times(\\var{n[3]})+\\left(\\frac{\\var{n[4]*n[4]}}{\\var{n[4]}}\\right)+\\var{mult1}(-1)^\\var{power}+\\var{mult2}(-1)^\\var{power+1}$ = [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans1}", "minValue": "{ans1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

Complete the following without the use of a calculator:

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"ans1": {"definition": "n[0]-n[1]+n[2]*n[3]+n[4]+mult1*(-1)^power+mult2*(-1)^(power+1)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "mult1": {"definition": "random(4..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "mult1", "description": ""}, "n": {"definition": "shuffle(-12..-2)[0..5]", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "power": {"definition": "random(2..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "power", "description": ""}, "mult2": {"definition": "random(4..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "mult2", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "extensions": [], "custom_part_types": [], "resources": []}