The Octave software is of great value whilst reading the book. For this reason
we are making available a number of ready-to-use programs that, by typing
simple commands, allow to analyse the numerical results and plots described in
the text.
In order to execute these programs it is necessary to install Octave,
a freely distributed software.
Download the file QG_functions_scripts.ziphere and unzip it.
Move the folder QG_functions_scripts from the folder Download
to a folder of your
choice on your computer. For example, we moved it in our User folder.
Click on "Windows" in the menu at the top of the page
and click on the link
installer.exe that is right for your computer. We chose the first link in the
list, which refers to the latest Octave version, and started downloading.
Install Octave by following Windows' instructions.
Launch Octave. Various pop-ups appear, but just continue. At the end the
application's window opens:
Find in the left menu the "QG_functions_scripts" folder and click
on it twice.
In the top "Current Folder" bar you will see the complete path of the folder
you're in.
We are in "C:\Users\maria\QG_functions_scripts"
Click in "Command Window", next to the symbol
>> (called prompt), and type hello
then press Enter.
If everything was done correctly up to this point, the Command Window will
display
"Welcome, we are ready to work together"
and right afterwards the Octave prompt
>> appears.
If instead you read:
error: 'hello' undefined near line 1 column
it means you are not currently in the QG_functions_scripts folder, so you should go back
to step 7.
There is another check you can make: type in the Command Window (next to
the prompt)
hakes_sharks(1000)
and then press Enter. If all is ok, two windows open that show Figures 6.21 and 6.22
of
the book (pages 190 and 191).
To quit Octave write
exit
in the Command Window, and then press Enter.
The complete sequence must be executed only the first time. Afterwards it
suffices to launch Octave and execute step 7.
Download the file QG_functions_scripts.ziphere and unzip it.
Move the folder QG_functions_scripts from the folder Downloads
to a folder of your
choice on your computer. For example, inside the Documents folder, we
generated the Octave folder and we moved the
QG_functions_scripts folder inside the Octave folder.
In a browser, search octave-app.org
and click "Download".
Click on the link "Octave-4.4.1.dmg" to begin the download.
Once this has finished, click on the Download folder's icon in your Mac's
tool bar and select "Open in Finder".
Click on "Octave-4.4.1.dmg" twice. In the pop-up window click "Agree" if
you accept the licence agreements.
Another pop-up appears, and shortly afterwards a new window "GNU
Octave".
Drag the "Octave-4.4.1" icon (to the left of the orange arrow) onto the folder
"Applications" (to the right of the orange arrow) and wait for Octave to be
copied and installed. In the meantime you'll see a pop-up with "Preparing to
copy...", and then another one with "Copying Octave-4.4.1".
Once this is done, you can close the windows.
In the Applications folder (in the Finder), simultaneously press the
keyboard button "control" and click on the icon Octave-4.4.1, then select
"Open":
Warning: double-clicking here doesn't work, for it won't allow Octave to start
properly the first time over. You'll be able to open Octave by double-clicking
only starting from the second time.
You will see a small pop-up with "Verifying Octave-4.4.1" and after one
minute or so, another pop-up with "Octave-4.4.1 is an application downloaded
from the internet. Are you sure you want to open it?".
Click on "Open" and wait a couple of minutes. If nothing happens after that,
doble-click on the Octave-4.4.1 icon.
A new pop-up appears saying "Welcome to Octave",
continue by clicking on "Next", accept (or not) to receive news from the Octave
website, click again on "Next" and then "Finish".
This Octave window opens:
Find in the left menu the QG_functions_scripts folder (we select
Documents and then Octave) and double-click on it.
In the top "Current Folder" bar you will see the complete path of the folder
you're in.
We are in "/Users/maria/Documents/Octave/QG_functions_scripts".
Click in "Command Window", next to the symbol
>> (called prompt), and type hello
then press Enter.
If everything was done correctly up to this point, the Command Window will
display
"Welcome, we are ready to work together"
and right afterwards the Octave prompt
>> appears.
If instead you read:
error: 'hello' undefined near line 1 column
it means you are not currently in the QG_functions_scripts folder, so you should go back
to step 12.
There is another check you can make: type in the Command Window (next to
the prompt)
hakes_sharks(1000)
and then press Enter. If all is ok, two windows open that show Figures 6.21 and 6.22
of
the book (pages 190 and 191).
To quit Octave write
exit
in the Command Window, and then press Enter.
The complete sequence must be executed only the first time. Afterwards it
suffices to launch Octave and execute step 12.
Download the file QG_functions_scripts.ziphere and unzip it.
Move the folder QG_functions_scripts from the folder Download
to a folder of your
choice on your computer. For example, we moved it in the folder
/home/gerva/Octave
Download the latest version of Octave through the update software of your
Linux distributor. In Ubuntu, for instance, you will need to execute the
command
sudo apt-get install octave
while in Fedora you should type
sudo dnf install octave
Launch Octave by either clicking in its icon or writing
octave
in a shell (the first time you do this there will be welcome pop-ups, but just
continue with the installation). Once the installation is complete the Octave
window opens:
Search in the left menu for the folder "QG_functions_scripts" and select it by
clicking on it twice.
In the upper "Current directory'' bar you will find the full path of the
folder you're in.
We are in "/home/gerva/Octave/QG_functions_scripts".
Click in "Command Window", next to the symbol
>> (called prompt), and type hello
then press Enter.
If everything was done correctly up to this point, the Command Window will
display
"Welcome, we are ready to work together"
and right afterwards the Octave prompt
>> appears.
If instead you read:
error: 'hello' undefined near line 1 column
it means you are not currently in the QG_functions_scripts folder, so you should go back
to step 5.
There is another check you can make: type in the Command Window (next to
the prompt)
hakes_sharks(1000)
and then press Enter. If all is ok, two windows open that show Figures 6.21 and 6.22
of
the book (pages 190 and 191).
To quit Octave write
exit
in the Command Window, and then press Enter.
The complete sequence must be executed only the first time. Afterwards it
suffices to launch Octave and execute step 5.