MathGroup Archive 1998

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

Search the Archive

Re: Assigning a list to coefficients

  • To: mathgroup at smc.vnet.net
  • Subject: [mg13916] Re: [mg13883] Assigning a list to coefficients
  • From: "Jens-Peer Kuska" <kuska at linmpi.mpg.de>
  • Date: Mon, 7 Sep 1998 01:22:41 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Toshi

with

rules=Thread[Table[c[i],{i,1,n}] -> A]

You create your transformation rules. Later if You wish to expand the
A's just say

aLongResultWithCis /. rules

Hope that helps
  Jens
-----Original Message-----
From: Toshiyuki Meshii <tm60 at cornell.edu> To: mathgroup at smc.vnet.net
Subject: [mg13916] [mg13883] Assigning a list to coefficients


>Hello,
>
>How can I assign a list to a coefficient with an index? That is, I have
>a list A which has data A={a1, a2, a3, ....., an}
>all the components of A is numerical value. And I want to assign the
>coefficients ci used in f[x_]=Sum[ ci * x ,{i=1,n}]
>at the later stage to the list A.   How can I do it?
>
>I want to do some work such as differentiating f[x] symbolically, so I
>do not want to use A[[i]] in the Sum.
>
>-Toshi
>
>
>



  • Prev by Date: Re: Vectors (other problem)
  • Next by Date: Re: Simple but difficult integral ? Help ..!??
  • Previous by thread: Re: Assigning a list to coefficients
  • Next by thread: Union question