Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: List Manipulation

  • To: mathgroup at
  • Subject: [mg72425] Re: List Manipulation
  • From: Arkadiusz.Majka at
  • Date: Wed, 27 Dec 2006 05:59:14 -0500 (EST)
  • References: <emo866$g29$>

{2+5*k, 6+2*k, 78+12*k} /.{a_+b_*k->{a,b}}



Stratocaster napisal(a):
> I'm not sure if the following is possible or whether it exists somewhere
> between the realms of fantasy and science fiction.  I have been unable to do
> it.
> Given a list, set, vector (whatever you want to call it) consisting of
> functions of the same variable, i.e.
> list = {a1+b1*k, a2+b2*k, a3+b3*k...}
> Assuming they are all linear (of the form a+b*k) is there away to isolate
> the a_i and b_i values?  Essentially I would like to get a list "A"
> consisting of all the intercept values, and a list "B" consisting of all the
> slope values.
> Is this possible?  What kind of operations do I need to use to accomplish
> this (if indeed it is possible)?
> Thanks for any insights.

  • Prev by Date: Re: Re: ReplaceAll applied to List
  • Next by Date: Re: Re: nestled plotting
  • Previous by thread: Re: List Manipulation
  • Next by thread: Re: Re: List Manipulation