Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

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




  • 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