MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Do loop var in deferred assignment



Dear All,

I am surprised to learn that in

Do[degradation[i][t_]:=kdegrad[i]*concentration[i][t]
  ,{i,10}]

i in the rhs is not evaluated. Removing the colon works. However, I need delayed
assignments for putting this in a dynamical system. How can I define:

degradation[1][t_]:=kdegrad[1]*concentration[1][t],
degradation[2][t_]:=kdegrad[2]*concentration[2][t], etc.?

Best regards,
Tom Aldenberg




  • Prev by Date: combining graphics
  • Next by Date: With[{software=Mathematica}, Frustration]
  • Previous by thread: Re: combining graphics
  • Next by thread: FW: Do loop var in deferred assignment