MathGroup Archive 1999

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

Search the Archive

Re: List of function-heads

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17092] Re: [mg17068] List of function-heads
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sat, 17 Apr 1999 03:34:58 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Peter Breitfeld writes:

>I want to create a List of function-heads like this:
>{a[1][x_],a[2][x_],...,a[n][x_]}
>(to keep this message short I'll use n=2 in the following) to assign
>these to a list of Functions, e.g
>
>{a[1][x_],a[2][x_]}={x^2,x-1}
>
>I can do that with the following command:
>
>In[1]:=fl=Table[a[i][x_],{i,2}]
>Out[1]={{a[1][x_],a[2][x_]}
>
>But then I can't write:
>
>ll={x^2,x-1}
>
>because now the a[i] are overwritten and not assosiated with the
>elements of the rhs. 
>
>Is there a way to get it working? I tried Thread, MapThread and some
>more but didn't find a solution.


Try

Thread[Evaluate[fl] = {x^2, x-1}]

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/



  • Prev by Date: Re: List of function-heads
  • Next by Date: RE: Border on Tables
  • Previous by thread: Re: List of function-heads
  • Next by thread: Re: List of function-heads