## Dynamic Systems Octave Tutorial

In this tutorial, we will cover some of the basics operations of dynamic systems using GNU Octave. GNU Octave is a programming language for scientific computation. In this context, Octave is used to solve linear and non linear problems numerically. It can also perform other numeric operations, which in their majority are compatible with Matlab (this also include the syntax).

## Symbolic Package Installation

Once GNU Octave is installed, we need to install the Symbolic package. This package will allow us to perform symbolic calculations. These include operations such as: algebraic operations, calculus, equation solving, Fourier and Laplace transforms, variable precision arithmetic and other features. First download the package here. Open octave, and change the directory path to where the file is. For that, go to the upper bar and select Browse directories. This will open a window explorer, navigate to where you downloaded the symbolic package. Then, click on Select Folder (if the file is not displayed, don’t worry). You must now see the file on the left explorer, if not, make sure you selected the folder where the file is located.

Now on the command window type the following command: pkg install symbolic-win-py-bundle-2.8.0.tar.gz. Wait until the installation process finish.

## Example:

In this example, we will use the Symbolic Package, so make sure you have everything working. First, open GNU Octave and load the Symbolic package using the command: pkg load symbolic;. Then insert the following commands:

• syms a

• T = [2-a,0,0,-1;-1,1-a,0,0;0,0,2-a,0;0,0,0,2-a];

• det(T)

• A = [2,0,0,-1;-1,1,0,0;0,0,2,0;0,0,0,2];

• eig(A)

If you want to display the values of any variables, you can type then on the Command Window. Also, note that the (;) at the end  of each command is not mandatory, if you omit it, the result will be automatically displayed in the next line.