File: eval3d.man

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 (40 lines) | stat: -rw-r--r-- 774 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
30
31
32
33
34
35
36
37
38
39
40
.TH eval3d 2 "April 1993" "Scilab Group" "Scilab Function" 
.so ../sci.an
.SH NAME
eval3d - values of a function on a grid
.SH CALLING SEQUENCE
.nf
[z]=eval3d(fun,x,[y])
.fi
.SH PARAMETERS
.TP 15
fun 
: function accepting vectors as arguments.
.TP
x,y
: 2 vectors of size (1,n1) and (1,n2). (default value for \fVy\fR : \fVy=x\fR).
.TP
z
: matrix of size (n1,n2).
.SH DESCRIPTION
This function returns a matrix \fVz(n1,n2)\fR. \fVz(i,j)=fun(x(i),y(j))\fR. 
If the function \fVfun\fR doesn't accept arguments of type vector use the
primitive \fVfeval\fR.
.SH EXAMPLE 
.nf
  x=-5:5;y=x;
  deff('[z]=f(x,y)',['z= x.*y']);
  z=eval3d(f,x,y);
  plot3d(x,y,z);
// 
  deff('[z]=f(x,y)',['z= x*y']);
  z=feval(x,y,f);
  plot3d(x,y,z);
.fi 
.SH SEE ALSO
feval
.SH AUTHOR
Steer S.