Do loop var in deferred assignment
- To: mathgroup at smc.vnet.net
- Subject: [mg24287] Do loop var in deferred assignment
- From: Tom Aldenberg <Tom.Aldenberg at rivm.nl>
- Date: Fri, 7 Jul 2000 00:11:28 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
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