~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/programming/feval.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

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