For this week's laboratory, you will write four linear algebra functions using for-loops or while-loops. The four linear algebra functions you will write are 1) calculating the magnitude of a vector, 2) a vector dot product, 3) matrix- vector multiply (Ax-bi, and 4) matrix-matrix multiply (AB=C). You will write your programs in Jupyter Notebook. You will define the input vectors and matrices in the main, pass into your functions, and pass out the results (i.e. magnitude of a vector, the result from the dot product, the result from the matrix-vector multiply, which is the vector b, and the result from the matrix-matrix multiply, which is the matrix C). You cannot use any built-in mathematical functions; you must write these on your own. Below are the vectors and the matrix you will use 8 1 -4 15 2 7 5 17 6 3 2 30 1 8 21 12 20 9 27 1 x₁= and x2= A= and B= 10 11 10 6 11 14 11 2 23 24 17 6 17 9 4 23 8 24 2 27

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.3: Declaring And Processing Two-dimensional Arrays
Problem 7E: (Electrical eng.) a. An engineer has constructed a two-dimensional array of real numbers with three...
icon
Related questions
Question
For this week's laboratory, you will write four linear algebra functions using
for-loops or while-loops. The four linear algebra functions you will write are
1) calculating the magnitude of a vector, 2) a vector dot product, 3) matrix-
vector multiply (Ax-bi, and
4) matrix-matrix multiply (AB=C). You will write your programs in Jupyter
Notebook. You will define the input vectors and matrices in the main, pass
into your functions, and pass out the results (i.e. magnitude of a vector, the
result from the dot product, the result from the matrix-vector multiply, which
is the vector b, and the result from the matrix-matrix multiply, which is the
matrix C). You cannot use any built-in mathematical functions; you must
write these on your own.
Below are the vectors and the matrix you will use
8
1
-4 15
2
7
5
17
6 3
2
30
1 8
21
12
20
9
27
1
x₁=
and x2=
A=
and B=
10
11
10
6 11
14
11
2
23
24
17
6
17
9
4 23
8
24 2
27
Transcribed Image Text:For this week's laboratory, you will write four linear algebra functions using for-loops or while-loops. The four linear algebra functions you will write are 1) calculating the magnitude of a vector, 2) a vector dot product, 3) matrix- vector multiply (Ax-bi, and 4) matrix-matrix multiply (AB=C). You will write your programs in Jupyter Notebook. You will define the input vectors and matrices in the main, pass into your functions, and pass out the results (i.e. magnitude of a vector, the result from the dot product, the result from the matrix-vector multiply, which is the vector b, and the result from the matrix-matrix multiply, which is the matrix C). You cannot use any built-in mathematical functions; you must write these on your own. Below are the vectors and the matrix you will use 8 1 -4 15 2 7 5 17 6 3 2 30 1 8 21 12 20 9 27 1 x₁= and x2= A= and B= 10 11 10 6 11 14 11 2 23 24 17 6 17 9 4 23 8 24 2 27
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr