Flattening systems of eqns: And the winner is...
- To: mathgroup@smc.vnet.net
- Subject: [mg10564] Flattening systems of eqns: And the winner is...
- From: Selwyn Hollis <shollis@peachnet.campus.mci.net>
- Date: Tue, 20 Jan 1998 16:54:07 -0500
- Organization: CampusMCI
Recently I posted the following question:
>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}?
I've received several responses, most of which suggest some variation of
Thread and Flatten. However the _best_ response was from Jens, who
pointed out that one can
SetAttributes[Equal,Listable]
Bravo, Jens!
:-)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dr. Selwyn Hollis
Associate Professor of Mathematics
Armstrong Atlantic State University
Savannah, GA 31419 USA
<http://www.math.armstrong.edu/faculty/hollis/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~