// Numbas version: finer_feedback_settings {"name": "Complex Numbers Quarto 1 - Addition and Subtraction", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Complex Numbers Quarto 1 - Addition and Subtraction", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "

\\begin{align}
z_1 + z_2 &= (\\var{z_1}) + (\\var{z_2}) \\\\
&= \\simplify[!collectNumbers]{{z_1}+{z_2}} \\\\
&= \\var{ans[0]}
\\end{align}

\n

\\begin{align}
z_1 - z_2 &= (\\var{z_1}) - (\\var{z_2}) \\\\
&= \\simplify[!collectNumbers]{{z_1}-{z_2}} \\\\
&= \\var{ans[1]}
\\end{align}

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"ans": {"name": "ans", "group": "Ungrouped variables", "definition": "[z_1+z_2,z_1-z_2]", "description": "", "templateType": "anything", "can_override": false}, "z_1": {"name": "z_1", "group": "Ungrouped variables", "definition": "random(3..9)+random(2..9)i", "description": "", "templateType": "anything", "can_override": false}, "z_2": {"name": "z_2", "group": "Ungrouped variables", "definition": "random(3..9 except re(z_1))+random(-9..9 except [0,im(z_1)])i", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ans", "z_1", "z_2"], "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": "

$z_1=\\var{z_1}$ and $z_2=\\var{z_2}$,

\n

$z_1 + z_2=$  [[0]]

\n

$z_1 - z_2=$  [[1]] 

", "gaps": [{"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, "answer": "{ans[0]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"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, "answer": "{ans[1]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}], "resources": []}]}], "contributors": [{"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}