// Numbas version: exam_results_page_options {"name": "j instead of i for the imaginary unit", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "j instead of i for the imaginary unit", "tags": [], "metadata": {"description": "

In this question, the imaginary unit $\\sqrt{-1}$ is written as $j$ instead of $i$.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

\\begin{align}
\\mathrm{j} &= \\sqrt{-1} \\\\[1em]
z_1 &= \\var{z1} \\\\[1em]
z_2 &= \\var{z2}
\\end{align}

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": false}, "constants": [{"name": "j", "value": "sqrt(-1)", "tex": "\\mathrm{j}"}], "variables": {"z1,z2": {"name": "z1,z2", "group": "Ungrouped variables", "definition": "repeat(\n random(-5..5) + random(-5..5 except 0)*j,\n 2\n)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["z1,z2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "

What is $z_1 \\times z_2$?

\n

Try {z1*z2} and {re(z1*z2)} {if(im(z1*z2)<0,'-','+')} {abs(im(z1*z2))}*i.

", "answer": "{z1*z2}", "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": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}