Displaying 1 result from an estimated 1 matches for "vdopl".
Did you mean:
vdoph
2012 Jul 18
1
Defining a variable outside of optim or differential equation solver.
...use the differential equation solver and this is my code
d<-y[2]
vdpol<-function(t,y)
{
list(c(1,
d,
3,
4
)
}
stiff<-ode(y=rep(0,4),times=c(0,1),func=dvdpol,parms=1)
The thing is I want d to be composed of one of state variables in the
differential function vdopl. Can it be done ?
tjun kiat