MathGroup Archive 2010

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

Search the Archive

Re: Programatically creating delayed

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110255] Re: Programatically creating delayed
  • From: "Stuart Nettleton" <Stuart.Nettleton at uts.edu.au>
  • Date: Thu, 10 Jun 2010 08:09:43 -0400 (EDT)
  • Organization: University of Technology, Sydney
  • References: <201006081106.HAA18787@smc.vnet.net>

Hi Lenoid,
Your extended function is much appreciated. It will be even more useful  
now you have generalised it. I have avoided using Hold until now because  
it seemed to be quite an advanced topic. As you will see from my next  
question, I am still a bit vague when it comes to this function.
My intended use for your assignElementsFull function is in a modelling  
application that I simplify to the following for illustration:
Clear[Prev, eqns, a, b];
Prev[vec_] := Flatten[{First[vec], Most[vec]}];
eqns = {a == Prev[b], b == Table[1, {3}]};
lhs = Map[ToString[#] &, Cases[eqns, Equal[m_, n_] -> m]]
Scan[assignElementsFull[#, "element", 3] &, lhs]
eqns2 = Flatten[Map[Thread[#] &, eqns]]
Solve[eqns2, Flatten[lhs]]

I would like to isolate the left hand side of the equations without  
evaluation, and then use these variables to create element vectors. Then I  
would like to use the variables in the vector form. My experiments using  
Hold to eliminate the errors have not yet been satisfactory. Please excuse  
my laborious syntax!
Would you be able to suggest a way forward?
Many thanks,
Stuart

--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly, and
with authority, states them to be the views the University of Technology,
Sydney. Before opening any attachments, please check them for viruses and
defects.


  • Prev by Date: Re: Push to clipboard?
  • Next by Date: Re: difficulty using FindRoot
  • Previous by thread: Re: Programatically creating delayed assignment
  • Next by thread: Re: Programatically creating delayed