MathGroup Archive 2006

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

Search the Archive

Re: List Manipulation


In[10]:=
data={a1+b1*k,a2+b2*k,a3+b3*k};
listA=Cases[data,Plus[a_,_Times]:>a,{1}]
listB=Cases[data,Plus[_Symbol,Times[b_,k]]:>b,{1}]
Out[11]=
{a1,a2,a3}
Out[12]=
{b1,b2,b3}

dkr


  • Prev by Date: How can I solve these equations using mathematica?
  • Next by Date: Compile RandomArray
  • Previous by thread: Re: List Manipulation
  • Next by thread: Re: List Manipulation