Scilab Reference Manual |
---|
fchamp — direction field of a 2D first order ODE
fchamp(f,t,xr,yr,[arfact,rect,strf]) fchamp(f,t,xr,yr,<opt_args>)
f | : An external (function or character string) or a list which describes the ODE.
| ||||
t | : The selected time. | ||||
xr,yr | : Two row vectors of size n1 and n2 which define the grid on which the direction field is computed. | ||||
<opt_args> | : This represents a sequence of statements key1=value1, key2=value2,... where key1, key2,... can be one of the following: arfact, rect, strf (see below). | ||||
arfact,rect,strf | : Optional arguments, see champ. |
fchamp is used to draw the direction field of a 2D first order ODE defined by the external function f. Note that if the ODE is autonomous, argument t is useless, but it must be given.
Enter the command fchamp() to see a demo.
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")
J.Ph.C.
<< fac3d | fcontour2d >> |