File: macro.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (29 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.TH macro 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
macro - Scilab procedure and Scilab object
.SH DESCRIPTION
Macros are Scilab procedures ("macro", "function" and "procedure"
have the save meaning). Usually, they are defined 
in files with an editor and loaded into Scilab by \fVgetf\fR or through
a library. 
.LP
They can also be defined on-line (see \fVdeff\fR). 
A file which contains a macro must begin as follows:
.nf 
function [y1,...,yn]=foo(x1,...,xm)
.fi
The \fVyi\fR are output variables calculated as functions of
input variables and variables existing in Scilab
when the macro is executed.
A macro can be compiled for faster execution. Collections
of macros can be collected in libraries.
Macros which begin with \fV%\fR sign (e.g. \fV%foo\fR) and whose
arguments are lists are used to perform specific 
operations: for example, \fVz=%rmr(x,y)\fR is equivalent
to \fVz=x*y\fR when \fVx\fR and \fVz\fR are rationals 
(i.e. \fVx=list('r',n,d,[])\fR with \fVn\fR and \fVd\fR polynomials).
.SH SEE ALSO
deff, getf, comp, lib