数学之路-大数据时代的数学思维-软件工具-octave(1)

来源:互联网 发布:readfile java 编辑:程序博客网 时间:2024/05/10 12:00

1、安装octave


Octave 是一个类似matlab和Scilab的数学软件包,可以进行各种运算,编程。它还有丰富的C++接口可以让用户编程时调用。它绘图使用gnuplot。


Octave的使用也是基于字符终端模式的,当需要绘图时,将会调用Gnuplot进行数据绘图,并显示出来。


Octave是用C++编写的,它内容丰富的库也可以供用户在编写软件时调用。

打开主页

http://www.gnu.org/software/octave/

选择download

 2、下载后安装

源代码在ftp://ftp.gnu.org/gnu/octave处下载。

在GNU/Linux系统中,有可执行包下载,比如:DebianFedoraGentoo, ubuntuSuSE

在BSD系统中有,可执行的包,FreeBSDOpenBSD都有,

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

 

 

0 0