[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Some utility scripts
From: |
Francesco Potorti` |
Subject: |
Some utility scripts |
Date: |
Wed, 26 Jan 2005 13:40:54 +0100 |
===File /usr/local/bin/compute==============================
#! /usr/bin/octave -qf
disp(eval(argv{1}))
============================================================
===File /usr/local/bin/apply================================
#! /usr/bin/octave -qf
disp(eval([argv{1} "(load('" argv{2} "'))"]))
============================================================
address@hidden:~/vbrsr$ cat /tmp/aa
5
6
7
address@hidden:~/vbrsr$ apply mean /tmp/aa
6
address@hidden:~/vbrsr$ apply std /tmp/aa
1
address@hidden:~/vbrsr$ apply sqrt /tmp/aa
2.2361
2.4495
2.6458
address@hidden:~/vbrsr$ compute "sqrt(2)"
1.4142
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 313 8091
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
Web: http://fly.isti.cnr.it/ Key: fly.isti.cnr.it/public.key
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Some utility scripts,
Francesco Potorti` <=