Skip to content
Prev 326680 / 398502 Next

Differential problem

On 11-07-2013, at 12:05, Rapha?lle Carraud <raphaelle.carraud at oc-metalchem.com> wrote:

            
When I run this I get this error message:

Error in eval(expr, envir, enclos) : object 'Tr' not found

And shouldn't the first line of the reaction function be this

with(as.list(c(state,dval,parameters)),{

in stead of this

with(as.list(c(state)),{

The call of daspk also seems incorrect; shouldn't it be

out <- daspk(y = state, dy = dval, times = z, res = reaction, parms = parameters)

And finally: where does variable P come from? Not defined anywhere!

Berend