Vector operations I - Your turn#
Note
Click the and open this notebook in Colab to enable interactivity.
Note
To save your progress, make a copy of this notebook in Colab File > Save a copy
and you’ll find it in My Drive > Colab Notebooks
.
Part 1#
Create a vector containing 6 equally spaced elements from 0 to 10: \(V = \begin{bmatrix} 0 & 2 & 4 & 6 & 8 & 10 \end{bmatrix}\) and display it on the screen. Don’t forget any necessary imports!
# TODO: Write your solution below
Next, replace the third element of your vector by the sum of the first and second elements.
# TODO: Write your solution below
Part 2#
Create a vector containing elements spaced by 0.2 between 1 and 2 (inclusive).
Then create a vector containing 10 equally spaced elements between 1.5 and 2 (inclusive).
# TODO: Write your solution below
Exporting your work#
When you’re ready, the easiest way to export the notebook is to File > Print
it and save it as a PDF.
Remove any excessively long, unrelated outputs first by clicking the arrow → next to the output box and then Show/hide output
.
Obviously don’t obscure any necessary output or graphs!