1、安装octave
打开主页
http://www.gnu.org/software/octave/
选择download
2、下载后安装
源代码在ftp://ftp.gnu.org/gnu/octave处下载。
在GNU/Linux系统中,有可执行包下载,比如:Debian, Fedora, Gentoo, ubuntu,SuSE。
在BSD系统中有,可执行的包,FreeBSD和OpenBSD都有,
在windows系统中,下载地址为:http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/
笔者下载的是:
http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.4%20for%20Windows%20Microsoft%20Visual%20Studio/
Windows版本的下载后可直接安装。Octave运行在命令行中,如果感觉不方便,可以打开powershell,进入octave安装目录中的bin>目录 ,执行octave.exe文件。
笔者安装在d盘,如下操作:
PS D:\Octave-3.6.4\bin> cd d:\Octave-3.6.4\bin
PS D:\Octave-3.6.4\bin> .\octave.exe
GNU Octave, version 3.6.4
Copyright (C) 2013 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
Octave was configured for "i686-pc-mingw32".
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html
Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type `news'.
- Use `pkg list' to see a list of installed packages.
- MSYS shell available (D:\Octave-3.6.4\msys).
- Graphics backend: gnuplot.
3、基本操作及语句。
(1)退出
使用quit或exit命令
(2)简单计算器
2+5*6/5
ans = 8
12*12*9787*10
ans = 14093280