Question: A question about procedure

Hi Everybody,

 

Suppose I have this procedure assign to p:

>p:=MyProc(args1,args2,args3,h) statement end proc:

where h is the step size.

args1 = {ode,ic} , args2 = x(t) et args3 = t=a..b.  The output of MyProc is a list of list

I would like to do what dsolve do when you write:

p:=dsolve( {ode,ic},x(t),x(t),numeric)

and then evaluate p(2) for example.

So my question is how can I make MyProc so I can evaluate p(2).  THis mean that p is a procedure given by the procedure MyProc.  I don't want to use global in my procedure.  Is this possible?

Mario

Please Wait...