// Numbas version: finer_feedback_settings {"name": "Vectors: inner or scalar product 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "name": "Vectors: inner or scalar product 1", "tags": ["dot product", "dot product of two vectors", "inner product", "scalar product", "three dimensional vectors", "vectors"], "advice": "\n \n \n
\\[ \\begin{eqnarray*} \\boldsymbol{A\\cdot B}&=& (\\var{a}, \\var{b},\\var{g}) \\cdot (\\var{c}, \\var{d},\\var{f})\\\\\n \n &=&\\simplify[]{{a}*{c}+{b}*{d}+{g}*{f}}\\\\\n \n &=& \\var{inner}\n \n \\end{eqnarray*} \\]
\n \n \n \n ", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "Find $\\boldsymbol{A\\cdot B} =\\;\\;$ [[0]]
", "gaps": [{"minvalue": "{inner}", "type": "numberentry", "maxvalue": "{inner}", "marks": 2.0, "showPrecisionHint": false}], "type": "gapfill", "marks": 0.0}], "extensions": [], "statement": "\n \n \nGiven the vectors:
\\[\\boldsymbol{A}=\\simplify[std]{{a}v:e_1+{b}v:e_2+{g}v:e_3},\\;\\;\\;\\boldsymbol{B}=\\simplify[std]{{c}v:e_1+{d}v:e_2+{f}v:e_3}\\]
answer the following question:
\n \n \n \n ", "variable_groups": [], "progress": "ready", "type": "question", "variables": {"a": {"definition": "s1*random(2..9)", "name": "a"}, "c": {"definition": "s3*random(2..9)", "name": "c"}, "b": {"definition": "s2*random(2..9)", "name": "b"}, "d": {"definition": "s4*random(2..9)", "name": "d"}, "g": {"definition": "s1*random(2..9)", "name": "g"}, "f": {"definition": "random(2..9)", "name": "f"}, "s3": {"definition": "random(1,-1)", "name": "s3"}, "s2": {"definition": "random(1,-1)", "name": "s2"}, "s1": {"definition": "random(1,-1)", "name": "s1"}, "s5": {"definition": "random(1,-1)", "name": "s5"}, "s4": {"definition": "random(1,-1)", "name": "s4"}, "inner": {"definition": "{a*c+b*d+f*g}", "name": "inner"}}, "metadata": {"notes": "\n \t\t \t\t15/07/2012:
\n \t\t \t\tAdded tags.
\n \t\t \t\t16/07/2012:
\n \t\t \t\tAdded tags.
Question appears to be working correctly.
\n \t\t \n \t\t", "description": "Given vectors $\\boldsymbol{A}$ and $\\boldsymbol{B}$, find their inner product.
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}