File: fchamp.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 (52 lines) | stat: -rw-r--r-- 1,345 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.TH fchamp 2 "April 1993" "Scilab Group" "Scilab Function" 
.so ../sci.an
.SH NAME
fchamp - draw a 2d vector field 
.SH CALLING SEQUENCE
.nf
fchamp(f,t,xr,yr,[arfact,brect,strf])
.fi
.SH PARAMETERS
.TP 10
f
: a function which describes the vector field. 
.RS 
.TP
-
It can be a function name \fVf\fR,
where \fVf\fR is supposed to be a function of type \fV[y]=f(t,x,[u])\fR ( \fVf\fR returns 
a column vector of dimension 2, \fVy\fR, which gives the value of the vector field 
\fVf\fR at point \fVx\fR and time \fVt\fR. 
.TP
-
It can also be an object of type list,
\fVlist(f1,u1)\fR
where \fVf1\fR is a function (\fVf [y]=f1(t,x,u)\fR ) and \fVu1\fR gives the value of the parameter \fVu\fR.
.RE
.TP 
t 
: The selected time.
.TP 
xr,yr
: two vectors of size (1,n1) (1,n2) which specifies the grid on which the vector field is to be computed.
.TP 
arfact,brect,strf
: optional arguments, see \fVchamp\fR.
.SH DESCRIPTION 
the \fVfchamp\fR is used to draw a two dimensional vector field described by a a Scilab 
external.

Enter the command \fVchamp()\fR to see a demo.
.SH EXAMPLE
.nf
 deff('[xdot] = derpol(t,x)',['xd1 = x(2)';
           "xd2 = -x(1) + (1 - x(1)**2)*x(2)";
           "xdot = [ xd1 ; xd2 ]"]);
 xf= -1:0.1:1;
 yf= -1:0.1:1;
 fchamp(derpol,0,xf,yf);
 xbasc();
 fchamp(derpol,0,xf,yf,1,[-2,-2,2,2],"011");
.fi
.SH AUTHOR
J.Ph.C.