Octave for Chapter 3

Examples in this section provide sample Octave code for answering questions about linear combinations, span, and linear independence. You can access our code through the link at the bottom of each template. Feel free to modify the code and experiment to learn more!

You can write your own code using Octave software or online Octave cells. To access Octave cells online, go to the Sage Math Cell Webpage, select OCTAVE as the language, enter your code, and press EVALUATE.

To ”save” or share your online code, click on the Share button, select Permalink, then copy the address directly from the browser window. You can store this link to access your work later or share this link with others. You will need to get a new Permalink every time you modify the code.

Octave Tutorial

Octave Exercises

If possible, express vector as a linear combination of the vectors in . If you find a linear combination, verify its correctness by hand.
(a)
is in . is NOT in .
(b)
is in . is NOT in .
Determine whether each of the following sets of vectors is linearly independent.
(a)
(b)
Find the number of redundant vectors in the following set. There are redundant vectors in the set.
In Example ex_oct_redundant, we constructed a linearly independent set from vectors of by starting with and adding one vector at a time to our set moving from left to right and checking for linear independence at every step. Our resulting set has the same span as the original set . What if we start this process with and move from right to left to identify and remove redundant vectors? Would we end up with the same final set? Modify the code of Example ex_oct_redundant to find out. Does our final set have the same span as ? Prove your claim.
2024-09-28 14:38:31