Skip to content

Commit 2ffa657

Browse files
committed
Add qs on dot product in matrix form
1 parent 9bb9e99 commit 2ffa657

1 file changed

Lines changed: 162 additions & 0 deletions

File tree

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
[
2+
{
3+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}3 & -2\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}4 & 1\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
4+
"type": "numeric",
5+
"answers": [
6+
{
7+
"type": "value",
8+
"value": 10,
9+
"correct": true,
10+
"feedback": "Correct!"
11+
},
12+
{
13+
"type": "default",
14+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
15+
}
16+
]
17+
},
18+
{
19+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}-1 & 0 & 5\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}3 & 2 & -2\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
20+
"type": "numeric",
21+
"answers": [
22+
{
23+
"type": "value",
24+
"value": -13,
25+
"correct": true,
26+
"feedback": "Correct!"
27+
},
28+
{
29+
"type": "default",
30+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
31+
}
32+
]
33+
},
34+
{
35+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}2 & 2\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}3 & -4\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
36+
"type": "numeric",
37+
"answers": [
38+
{
39+
"type": "value",
40+
"value": -2,
41+
"correct": true,
42+
"feedback": "Correct!"
43+
},
44+
{
45+
"type": "default",
46+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
47+
}
48+
]
49+
},
50+
{
51+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}0 & -3 & 1\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}5 & 2 & 0\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
52+
"type": "numeric",
53+
"answers": [
54+
{
55+
"type": "value",
56+
"value": -6,
57+
"correct": true,
58+
"feedback": "Correct!"
59+
},
60+
{
61+
"type": "default",
62+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
63+
}
64+
]
65+
},
66+
{
67+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}-2 & -2 & -2\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}-1 & 0 & 3\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
68+
"type": "numeric",
69+
"answers": [
70+
{
71+
"type": "value",
72+
"value": -4,
73+
"correct": true,
74+
"feedback": "Correct!"
75+
},
76+
{
77+
"type": "default",
78+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
79+
}
80+
]
81+
},
82+
{
83+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}4 & -5\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}0 & 1\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
84+
"type": "numeric",
85+
"answers": [
86+
{
87+
"type": "value",
88+
"value": -5,
89+
"correct": true,
90+
"feedback": "Correct!"
91+
},
92+
{
93+
"type": "default",
94+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
95+
}
96+
]
97+
},
98+
{
99+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}1 & 1 & 1\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}5 & 4 & 3\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
100+
"type": "numeric",
101+
"answers": [
102+
{
103+
"type": "value",
104+
"value": 12,
105+
"correct": true,
106+
"feedback": "Correct!"
107+
},
108+
{
109+
"type": "default",
110+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
111+
}
112+
]
113+
},
114+
{
115+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}-3 & -4\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}-2 & 1\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
116+
"type": "numeric",
117+
"answers": [
118+
{
119+
"type": "value",
120+
"value": 2,
121+
"correct": true,
122+
"feedback": "Correct!"
123+
},
124+
{
125+
"type": "default",
126+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
127+
}
128+
]
129+
},
130+
{
131+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}2 & 0 & -1\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}3 & -5 & 2\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
132+
"type": "numeric",
133+
"answers": [
134+
{
135+
"type": "value",
136+
"value": 4,
137+
"correct": true,
138+
"feedback": "Correct!"
139+
},
140+
{
141+
"type": "default",
142+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
143+
}
144+
]
145+
},
146+
{
147+
"question": "Let $\\mathbf{u} = \\begin{bmatrix}5 & 0 & 0\\end{bmatrix}^T$ and $\\mathbf{v} = \\begin{bmatrix}0 & 5 & 0\\end{bmatrix}^T$. Find $\\mathbf{u}^T \\mathbf{v}$.",
148+
"type": "numeric",
149+
"answers": [
150+
{
151+
"type": "value",
152+
"value": 0,
153+
"correct": true,
154+
"feedback": "Correct!"
155+
},
156+
{
157+
"type": "default",
158+
"feedback": "Incorrect. Recall that is the sum of the componentwise products."
159+
}
160+
]
161+
}
162+
]

0 commit comments

Comments
 (0)