// Numbas version: exam_results_page_options {"name": "Katie's copy of Linear combinations of 2 x 2 matrices", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "q1", "c", "b", "r1", "q", "p", "p1", "apb", "lcab", "lcabc"], "name": "Katie's copy of Linear combinations of 2 x 2 matrices", "tags": ["addition of matrices", "linear algebra", "linear combination of matrices", "matrices", "matrix"], "preamble": {"css": "", "js": ""}, "advice": "

a)

\n

\\[ \\begin{eqnarray*} \\simplify[std]{A+B} &=&\\simplify[std]{{a}+{b}}\\\\ &=& \\begin{pmatrix} \\simplify[std]{{a[0][0]}+{b[0][0]}}& \\simplify[std]{{a[0][1]}+{b[0][1]}}\\\\  \\simplify[std]{{a[1][0]}+{b[1][0]}}&\\simplify[std]{{a[1][1]}+{b[1][1]}} \\end{pmatrix}\\\\ &=&\\simplify{{apb}}\\\\  \\end{eqnarray*} \\]

\n

b) 

\n

\\[ \\begin{eqnarray*} \\simplify[std]{{p}A+{q}B} &=&\\simplify[std]{{p}{a}+{q}{b}}\\\\ &=& \\begin{pmatrix} \\simplify[std]{{p}*{a[0][0]}+{q}*{b[0][0]}}& \\simplify[std]{{p}*{a[0][1]}+{q}*{b[0][1]}}\\\\  \\simplify[std]{{p}*{a[1][0]}+{q}*{b[1][0]}}&\\simplify[std]{{p}*{a[1][1]}+{q}*{b[1][1]}} \\end{pmatrix}\\\\ &=&\\simplify{{lcab}}\\\\  \\end{eqnarray*} \\]

\n

c)

\n

\\[ \\begin{eqnarray*} \\simplify[std]{{p1}A+{q1}B+{r1}C} &=&\\simplify[std]{{p1}{a}+{q1}{b}+{r1}{c}}\\\\ &=& \\begin{pmatrix} \\simplify[std]{{p1}*{a[0][0]}+{q1}*{b[0][0]}+{r1}*{c[0][0]}}& \\simplify[std]{{p1}*{a[0][1]}+{q1}*{b[0][1]}+{r1}*{c[0][1]}}\\\\  \\simplify[std]{{p1}*{a[1][0]}+{q1}*{b[1][0]}+{r1}*{c[1][0]}}&\\simplify[std]{{p1}*{a[1][1]}+{q1}*{b[1][1]}+{r1}*{c[1][1]}} \\end{pmatrix}\\\\ &=&\\simplify{{lcabc}}\\\\  \\end{eqnarray*} \\]

\n

 

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

$\\mathrm{A}+\\mathrm{B} = \\simplify[std]{{a}+{b}} = $ [[0]]

", "marks": 0, "gaps": [{"numColumns": "2", "type": "matrix", "allowFractions": false, "correctAnswerFractions": false, "markPerCell": false, "numRows": "2", "showCorrectAnswer": true, "correctAnswer": "apb", "scripts": {}, "marks": 1, "tolerance": 0, "allowResize": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "$\\simplify{{p}A+{q}B = {p}{a}+{q}{b}}=$ [[0]]", "marks": 0, "gaps": [{"numColumns": "2", "type": "matrix", "allowFractions": false, "correctAnswerFractions": false, "markPerCell": false, "numRows": "2", "showCorrectAnswer": true, "correctAnswer": "lcab", "scripts": {}, "marks": 1, "tolerance": 0, "allowResize": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "

$\\simplify{{p1}A+{q1}B+{r1}C = {p1}{a}+{q1}{b}+{r1}{c}}=$ [[0]]

", "marks": 0, "gaps": [{"numColumns": "2", "type": "matrix", "allowFractions": false, "correctAnswerFractions": false, "markPerCell": false, "numRows": "2", "showCorrectAnswer": true, "correctAnswer": "lcabc", "scripts": {}, "marks": 1, "tolerance": 0, "allowResize": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}], "statement": "

Let 
\\[A=\\simplify{{a}},\\;\\; B=\\simplify{{b}},\\;\\; C=\\simplify{{c}}\\]
Calculate the following $2 \\times 2$ matrices:

\n

 

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "variables": {"a": {"definition": "matrix(repeat(repeat(random(-5..5 except 0),2),2))", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "q1": {"definition": "random(-6..6 except [0,1,-1,p1,q])", "templateType": "anything", "group": "Ungrouped variables", "name": "q1", "description": ""}, "c": {"definition": "matrix(repeat(repeat(random(-5..5 except [0,a[0][0],b[0][0]]),2),2))", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "matrix(repeat(repeat(random(-5..5 except [0,a[0][0]]),2),2))", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "r1": {"definition": "random(-6..6 except [0,1,-1,p1,q1])", "templateType": "anything", "group": "Ungrouped variables", "name": "r1", "description": ""}, "q": {"definition": "random(-6..6 except [0,1,-1,p])", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "p": {"definition": "random(2..6)", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "p1": {"definition": "random(2..6 except p)", "templateType": "anything", "group": "Ungrouped variables", "name": "p1", "description": ""}, "apb": {"definition": "a+b", "templateType": "anything", "group": "Ungrouped variables", "name": "apb", "description": ""}, "lcab": {"definition": "p*a+q*b", "templateType": "anything", "group": "Ungrouped variables", "name": "lcab", "description": ""}, "lcabc": {"definition": "p1*a+q1*b+r1*c", "templateType": "anything", "group": "Ungrouped variables", "name": "lcabc", "description": ""}}, "metadata": {"notes": "\n \t\t

8/02/2013:

\n \t\t


Finished first draft.

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

Linear combinations of $2 \\times 2$ matrices. Three examples.

", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Katie Dexter", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/553/"}]}]}], "contributors": [{"name": "Katie Dexter", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/553/"}]}