Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this activity, we will do operations on vectors. Furthermore, we find the linear combination of a vector in terms of a given set of
In this activity, we will do operations on vectors. Furthermore, we find the linear combination of a vector in terms of a given set of vectors.
Suppose that the vectors are linearly independent and is a given vector. This code will find the constants such that if is dependent of Otherwise, this code will output null.
Given the vectors:
First part: Arithmetic on vectors
Compute the scaled vectors below and put your answers in respectively.
Compute the different resultants:
Compute the linear combinations:
Second Part: Finding the linear combination of the vector w in terms of the vectors in terms of the generators w w and w
Step : Encode the vectors as column vectors. This is done by puttiing at the end of the vector.
For instance, we write
v
as opposed to just
v
Step : Augment the given generator vectors into a matrix by using the code
Step : Augment the matrix A and v and call the matrix Aw
Step : Find the reduce reducedrow echelon form of the matrix Av using the code:
rrefAw
and put the answer in rrefAw.
Step : Extract the endcolumn of the matrix Av using the code:
Root rrefAw: end
Step : The obtain the matrix back, use the code
AL rrefAw::end
Step : The last code below determines whether the constants are found or not.
if AL eyesizeAL
c Root
c Root
c Root
else
displayNo Roots Found"
c NaN;
c NaN;
c NaN;
end
FIRST PART
Encoding and Converting the Vectors as column Vector
v
v
v
Computation of the scaled vectors
v
v
v
Computation of resultants
v
v
Computation of linear combinations
v
v
v
SECOND PART
Encode the vectors as colum vectors
w
w
w
w
Augment the given vectors w w and w as a single matrix A
Augment A and w and express as reduced row echelon form.
Extract the column matrix and the remaining matrix
if AL eyesizeAL
c Root
c Root
c Root
else
displayNo Roots Found"
c NaN;
c NaN;
c NaN;
end
Check of the result
Compute the linear combination of the vectors w w and w using the obtained values for the constants and call the answer w
w
w
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started