Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ssign your student number to the variable Ex 1 Anum. ( Note: we are asking for a number like 8 7 6 5 4 3
ssign your student number to the variable ExAnum. Note: we are asking for a number
like and not text with quotation marks as in
b Enter the first digits of your student number as a row vector and save the result as
ExBvec. For example, if your student number is then we are asking for the
vector
c Compute the length of the vector in b and save the result as ExCnum.
d Enter the first digits of your student number as a vector v and enter the last digits
of your student number as a vector w Compute the projection of v onto w and save
the result as ExDvec. For example, if your student number is then we are
asking for the projection of onto
Exercise
The centroid of a triangle is the arithmetic mean of the vertices. In other words, if A B and
C are the vertices of a triangle then the centroid is given by
A B C
a Compute the centroid O of the triangle with vertices A B and
C see figure below and save the result as ExAvec.
b Find the vector from O to A and save the result as ExBvec.
c Find the vector from O to C and save the result as ExCvec.
d Find the angle angle AOC and save the result as ExDnum. Use the dot product formula
v w vw cos theta
Exercise
We can visualize the geometry of vectors in D and D space as arrows but this is not
possible in higher dimensions. Instead we can visualize vectors in higher dimensions using
bar plots where the xaxis represents the index and the yaxis is the value of each entry. For
example:
v;
barv grid on ylim
v;
barv grid on ylim
w ;
barw grid on ylim
a Compute the projection of w onto v and save the result as ExAvec.
b Compute the projection of w onto v and save the result as ExBvec.
c Is the vector w perpendicular to v Save your response as ExCtext "yes" or
ExCtext no
d Is the vector w perpendicular to v Save your response as ExDtext "yes" or
ExDtext no
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