首先他是干什么的。
1.数值计算,命令行下直接 1+1 马上显示等于2 ,不用点鼠标。不用在后面加上; 只需要1+1 然后enter 呵呵。有常用的数值计算函数。sin这些都是常见的。
2.可以画图*^◎^*用函数 画图。
实际操练
sudo apt-get install octave
安装成功然后:
octave 有了个提示符:
ub@ub-VirtualBox:~$ octave GNU Octave, version 3.2.4 Copyright (C) 2009 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-linux-gnu". 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/help-wanted.html Report bugs to <bug@octave.org> (but first, please read http://www.octave.org/bugs.html to learn how to write a helpful report). For information about changes from previous versions, type `news'. octave:1> |
octave:1> 1+1 ans = 2 octave:2> |
说说画图:
octave:2> y=1.100; octave:3> x=5:10; octave:4> plot(x,y); |
如果你在ubuntu系统中。直接回弹出个图。
如果你在ssh 也会有一个字符界面的 图
对了忘记说了 退出命令exit 囧 这个是我试出来的。好多这样的命令行程序的教程都不说这个的。
有意思!