// Numbas version: exam_results_page_options {"name": "Inner product of two vectors", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "metadata": {"notes": "\n \t\t

15/07/2012:

\n \t\t

Added tags.

\n \t\t

16/07/2012:

\n \t\t

Added tags.

\n \t\t

Question appears to be working correctly.

\n \t\t", "description": "

Given vectors $\\boldsymbol{v}$ and $\\boldsymbol{w}$, find their inner product.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "ungrouped_variables": ["a", "c", "b", "d", "g", "f", "s3", "s2", "s1", "s5", "s4", "inner"], "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "question_groups": [{"questions": [], "pickQuestions": 0, "pickingStrategy": "all-ordered", "name": ""}], "type": "question", "statement": "

You are given the vectors $\\boldsymbol{v}= \\var{vector(a,b,g)}$ and $\\boldsymbol{w} = \\var{vector(c,d,f)}$ in $\\mathbb{R}^3$.

", "preamble": {"js": "", "css": ""}, "tags": ["checked2015", "dot product", "dot product of two vectors", "inner product", "mas1602", "MAS1602", "scalar product", "three dimensional vectors", "unused", "vectors"], "parts": [{"marks": 0, "scripts": {}, "prompt": "

Find $\\boldsymbol{v \\cdot w} = $ [[0]]

", "type": "gapfill", "gaps": [{"marks": 2, "scripts": {}, "maxValue": "{inner}", "minValue": "{inner}", "showPrecisionHint": false, "allowFractions": false, "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": []}], "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true}], "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "variables": {"s2": {"templateType": "anything", "description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s2"}, "s4": {"templateType": "anything", "description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s4"}, "f": {"templateType": "anything", "description": "", "definition": "random(2..9)", "group": "Ungrouped variables", "name": "f"}, "c": {"templateType": "anything", "description": "", "definition": "s3*random(2..9)", "group": "Ungrouped variables", "name": "c"}, "b": {"templateType": "anything", "description": "", "definition": "s2*random(2..9)", "group": "Ungrouped variables", "name": "b"}, "a": {"templateType": "anything", "description": "", "definition": "s1*random(2..9)", "group": "Ungrouped variables", "name": "a"}, "d": {"templateType": "anything", "description": "", "definition": "s4*random(2..9)", "group": "Ungrouped variables", "name": "d"}, "s3": {"templateType": "anything", "description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s3"}, "g": {"templateType": "anything", "description": "", "definition": "s1*random(2..9)", "group": "Ungrouped variables", "name": "g"}, "inner": {"templateType": "anything", "description": "", "definition": "{a*c+b*d+f*g}", "group": "Ungrouped variables", "name": "inner"}, "s5": {"templateType": "anything", "description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s5"}, "s1": {"templateType": "anything", "description": "", "definition": "random(1,-1)", "group": "Ungrouped variables", "name": "s1"}}, "advice": "

\\begin{align}
\\boldsymbol{v \\cdot w} &= \\var{vector(a,b,g)} \\boldsymbol{\\cdot} \\var{vector(c,d,f)} \\\\
&= \\simplify[]{{a}*{c}+{b}*{d}+{g}*{f}} \\\\
&= \\var{inner}
\\end{align}

", "name": "Inner product of two vectors", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}