MathGroup Archive 2000

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

Search the Archive

Re: Do loop var in deferred assignment

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24326] Re: Do loop var in deferred assignment
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 9 Jul 2000 04:52:36 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <8k3mak$3mv@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

if you learn that something is not evaluated you should
learn to evaluate it by

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

Regards
  Jens

Tom Aldenberg wrote:
> 
> 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: NON- EUCLIDEAN NON- DIMENSIONAL CIRCUMRADIUS ???
  • Next by Date: Re: With[{software=Mathematica}, Frustration]
  • Previous by thread: Re: Do loop var in deferred assignment
  • Next by thread: RE: Do loop var in deferred assignment