个人工具

“UbuntuHelp:Octave”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第8行: 第8行:
 
octave:2> b = [ 1 2 3 4]
 
octave:2> b = [ 1 2 3 4]
 
b =
 
b =
1  2  3  4
+
 
 +
  1  2  3  4
 +
 
 
octave:3> c = a * b
 
octave:3> c = a * b
 
c =
 
c =
6  12  18  24
+
 
 +
  6  12  18  24
 +
 
 
octave:4> exit
 
octave:4> exit
 
</nowiki></pre>
 
</nowiki></pre>

2007年12月6日 (四) 10:48的版本

GNU Octave is a high-level language, primarily intended for numerical computations. It is similar to the commerial product MATLAB. It gives you an command line environment where you can do calculation, solve equations, manipulate matrices and plot graphs. A list of commands can be put into a file and executed as an interpreted scripting language. A simple example of a Octave session

octave:1> a = 2 * 3
a = 6
octave:2> b = [ 1 2 3 4]
b =

  1  2  3  4

octave:3> c = a * b
c =

   6  12  18  24

octave:4> exit

Installation

Octave is in the Ubuntu universe and can be installed with synaptic or apt-get. The package name is "octave"

Running octave

To run octave open a terminal and type

octave

Resources