File: macro.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (23 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

macro(1)                       Scilab Function                       macro(1)
NAME
  macro - Scilab procedure and Scilab object

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 getf or through a library.

  They can also be defined on-line (see deff). A file which contains a macro
  must begin as follows:
  function [y1,...,yn]=foo(x1,...,xm)
  The yi 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 % sign (e.g. %foo) and whose arguments
  are lists are used to perform specific operations: for example, z=%rmr(x,y)
  is equivalent to z=x*y when x and z are rationals (i.e. x=list('r',n,d,[])
  with n and d polynomials).

SEE ALSO
  deff, getf, comp, lib