MathGroup Archive 1999

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

Search the Archive

Re: List of function-heads, a correction..

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17164] Re: [mg17068] List of function-heads, a correction..
  • From: "Mark E. Harder" <harderm at ucs.orst.edu>
  • Date: Sun, 18 Apr 1999 23:53:13 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Peter,
    Sorry if my message didn't make much sense. The code I meant to send
was:
fl=Table[a[i][x_],{i,2} ]
fl:={x^2,x-1}
x=2;
fl
x=3;
fl
-mark harder


>
>
>-----Original Message-----
>From: Peter Breitfeld <phbrf at t-online.de>
To: mathgroup at smc.vnet.net
>To: mathgroup at smc.vnet.net
>Subject: [mg17164] [mg17105] [mg17068] List of function-heads
>
>
>>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.
>>
>>TIA
>>
>>Es gruesst  Peter
>>--
>>=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
>>  Peter Breitfeld, Saulgau, Germany        PGP public key:  08548045
>>
>
>



  • Prev by Date: Re: Re: Strange ReplaceRepeated
  • Next by Date: Testreport: Math. & stat. software for data analysis
  • Previous by thread: Display cannot be used during intialization message
  • Next by thread: Testreport: Math. & stat. software for data analysis