// Numbas version: exam_results_page_options {"name": "Norm of a vector in three dimensions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Norm of a vector in three dimensions", "tags": [], "metadata": {"description": "

Given vector $\\boldsymbol{v}$  find the norm. Since putting in square roots is tricky, actually input the square norm, so it's an integer.

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

You are given the vector $v= \\var{vector(a,b,g)}$ in $\\mathbb{R}^3$.

", "advice": "

\\begin{align}
\\|v\\|^2 =v^T \\cdot v &= \\begin{pmatrix}\\var{a} &\\var{b} & \\var{g}\\end{pmatrix} \\begin{pmatrix}\\var{a}\\\\\\var{b}\\\\\\var{g}\\end{pmatrix} \\\\
&= \\simplify[]{{a}^2+{b}^2+{g}^2} \\\\
&= \\var{squarenorm}
\\end{align}

\n

So \\(\\|v\\|=\\sqrt{\\var{squarenorm}}\\).

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "extensions": [], "variables": {"s1": {"name": "s1", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "s2*random(2..9)", "description": "", "templateType": "anything"}, "s2": {"name": "s2", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "norm": {"name": "norm", "group": "Ungrouped variables", "definition": "sqrt(a^2+b^2+g^2)", "description": "", "templateType": "anything"}, "s3": {"name": "s3", "group": "Ungrouped variables", "definition": "random(1,-1)", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "s1*random(2..9)", "description": "", "templateType": "anything"}, "g": {"name": "g", "group": "Ungrouped variables", "definition": "s3*random(2..9)", "description": "", "templateType": "anything"}, "squarenorm": {"name": "squarenorm", "group": "Ungrouped variables", "definition": "a^2+b^2+g^2", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "g", "s3", "s2", "s1", "norm", "squarenorm"], "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": "

Find the norm \\(\\|v\\|\\), by giving the square of the norm, \\(\\|v\\|^2=\\) [[0]].

", "gaps": [{"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, "minValue": "{squarenorm}", "maxValue": "{squarenorm}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Julia Goedecke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5121/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Julia Goedecke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5121/"}]}