// Numbas version: finer_feedback_settings {"name": "Vectors: cross product 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "d", "g", "f", "s3", "s2", "s1", "s5", "s4", "inner"], "name": "Vectors: cross product 1", "tags": ["3 dimensional vector", "cross product", "three dimensional vectors", "vector", "vector product", "vectors"], "preamble": {"css": "", "js": ""}, "advice": "

\\[ \\begin{eqnarray*} \\boldsymbol{A\\times B}&=& \\begin{vmatrix} \\boldsymbol{e_1} & \\boldsymbol{e_2} &\\boldsymbol{e_3}\\\\ \\var{a} & \\var{b} & \\var{g}\\\\ \\var{c} & \\var{d} & \\var{f} \\end{vmatrix}\\\\ \\\\ &=&\\simplify[]{({b}*{f}-{g}*{d})v:e_1 + ({g}*{c} - {a}*{f})v:e_2+({a}*{d}-{b}*{c})v:e_3}\\\\ \\\\ &=&\\simplify[std]{{b*f-g*d}v:e_1+{g*c-a*f}v:e_2+{a*d-b*c}v:e_3} \\end{eqnarray*} \\]

", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "

Find $\\boldsymbol{A\\times B} =$ [[0]]$\\boldsymbol{e_1} + \\;$[[1]]$\\boldsymbol{e_2} + \\;$[[2]]$\\boldsymbol{e_3}$

", "marks": 0, "gaps": [{"allowFractions": false, "marks": 1, "maxValue": "{b*f-g*d}", "minValue": "{b*f-g*d}", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "marks": 1, "maxValue": "{g*c-a*f}", "minValue": "{g*c-a*f}", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "marks": 1, "maxValue": "{a*d-b*c}", "minValue": "{a*d-b*c}", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}], "statement": "\n \n \n

Given 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}\\]

\n \n \n \n

answer the following question:

\n \n \n ", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "s1*random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "s3*random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "s2*random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "s4*random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "s1*random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "s3": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s3", "description": ""}, "s2": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s2", "description": ""}, "s1": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1", "description": ""}, "s5": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s5", "description": ""}, "s4": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s4", "description": ""}, "inner": {"definition": "{a*c+b*d+f*g}", "templateType": "anything", "group": "Ungrouped variables", "name": "inner", "description": ""}}, "metadata": {"notes": "

16/07/2012:

\n

Added tags.

\n

Question appears to be working correctly.

\n

 26/01/2013:

\n

Correced mistake in Advice working.

", "description": "

Given vectors $\\boldsymbol{A,\\;B}$, find $\\boldsymbol{A\\times B}$

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "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/"}]}