~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/programming/feval.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH feval 1 "April 1993" "Scilab Group" "Scilab Function"
2
 
.so ../sci.an
3
 
.SH NAME
4
 
feval - multiple evaluation
5
 
.SH CALLING SEQUENCE
6
 
.nf
7
 
[z]=feval(x,y,f)
8
 
[z]=feval(x,f)
9
 
.fi
10
 
.SH PARAMETERS
11
 
.TP 10
12
 
x,y
13
 
: two vectors
14
 
.TP 10
15
 
f
16
 
: function or character string (for Fortran call)
17
 
.SH DESCRIPTION
18
 
Multiple evaluation of a function for one or two arguments 
19
 
of vector type :
20
 
.TP 15
21
 
z=feval(x,f) 
22
 
returns the vector \fVz\fR defined by
23
 
.Vb z(i)=f(x(i))
24
 
.TP
25
 
z=feval(x,y,f) 
26
 
returns the matrix 
27
 
.Vb z, z(i,j)=f(x(i),y(j))
28
 
 
29
 
.LP
30
 
\fVf\fR is an external (function or routine) depending 
31
 
on one or two  arguments which are supposed to be real.
32
 
The result returned by \fVf\fR can be real or complex. 
33
 
In case of a Fortran call, the function \fV 'f' \fR must be defined 
34
 
in the subroutine \fVffeval.f\fR (in directory \fVSCIDIR/routines/default\fR)
35
 
.SH EXAMPLE
36
 
.nf
37
 
deff('[z]=f(x,y)','z=x^2+y^2');
38
 
feval(1:10,1:5,f)
39
 
deff('[z]=f(x,y)','z=x+%i*y');
40
 
feval(1:10,1:5,f)
41
 
feval(1:10,1:5,'parab')   //See ffeval.f file
42
 
feval(1:10,'parab')
43
 
// For dynamic link (see example ftest in ffeval.f)
44
 
// you can use the link command (the parameters depend on the machine):
45
 
// unix('make ftest.o');link('ftest.o','ftest); feval(1:10,1:5,'ftest') 
46
 
.fi
47
 
.SH SEE ALSO
48
 
evstr, horner, execstr, external, link