MathGroup Archive 1998

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

Search the Archive

RE: "flattening" systems of eq




Try the following:

In[1]:=
expr={ {a, b, c, d}=={w, x, y, z}, e==f }; MapAt[ Thread, expr, 1]//
Flatten

Out[1]=
{ a==w, b==x, c==y, d==z, e==f}


          Ted Ersek
 ----------
|From: "shollis"@peachnet.campus.mci.net@PMDF@PAXMB1 To:
mathgroup@smc.vnet.net
|To: ersek ted; "mathgroup"@smc.vnet.net@PMDF@PAXMB1 |Subject: [mg10431] [mg10375]
``flattening" systems of equat |Date: Monday, January 12, 1998 12:13PM
|
|<<File Attachment: 00000000.TXT>>
|What is the  simplest way to convert a system of equations like this: |
|{{a,b,...}=={c,d,...}, e==f}
|
|into this:
|
|{a==c, b==d,..., e==f}?
|
|(Solve[] works on systems in either form, but FindRoot[] seems to
|require the second.)
|
|--
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dr. Selwyn Hollis
|Associate Professor of Mathematics
|Armstrong Atlantic State University |Savannah, GA 31419 USA
|<http://www.math.armstrong.edu/faculty/hollis/>
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
|




  • Prev by Date: RE: ListPlot
  • Next by Date: Re: problem with Integrate
  • Prev by thread: Row & Column Vectors, Dot & Outer Products, Revisited
  • Next by thread: user's query in comp.soft-sys.math.matheamtica (fwd)