Why Octave?

In writing Linear Algebra, An Interactive Introduction, we drew upon many years of experience teaching elementary linear algebra. We have found that when students experiment with scientific computing software such as MATLAB, the subject comes alive! Students can quickly recognize patterns, form conjectures, and test their theories.

We recognize that not every learning institution has the funding to purchase software for student use. For this reason we chose to use Octave as our computational tool. GNU Octave is a programming language compatible with MATLAB. GNU Octave can be downloaded for free at https://www.octave.org/download or executed in SageCells online. Online SageCells and a desktop version of Octave can be equally effective in enhancing the experience in linear algebra.

The purpose of this Octave tutorial is to gather commands and examples useful for this linear algebra course into one place. Students and instructors may find this to be a useful reference as they proceed through the course. Please refer to the Octave manual for additional support.

How to Use SageCells

We present code in two different ways. First, the code appears as text within the narrative, like this:

    disp(’Hello, world!’);

This code can be copied and pasted into MATLAB or Octave. Second, we provide permalinks to our code in SageCells, like this:

Link to code.

Users should feel free to modify our code inside SageCells. To save their work, users should generate their own permalink. Permalinks should be stored to access the code at a later time and to share the code with others. Note that every time the code is modified a new permalink must be generated to reflect the changes.

When writing Octave code in SageCells from scratch, make sure to choose Octave as your language from the drop down menu below the cell.

This 3:00 video explains how to use permalinks. The key step is just past the 2:15 mark.

_

Getting Help

The following link provides documentation for linear algebra functions used in Octave. Link to linear algebra functions documentation.

To get immediate help inside of a SageCell or in Octave Desktop, you can use the help command, as follows:

    help eig
2024-09-06 02:25:55