|
[Date Index]
[Thread Index]
[Author Index]
Flattening systems of eqns: And the winner is...
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/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Prev by Date:
I don't understand in Mathematic
Next by Date:
Integrate[Exp[-(1-x)^2]/Sqrt[x],{x,0,Infinity}]
Prev by thread:
Re: I don't understand in Mathematic
Next by thread:
Re: Flattening systems of eqns: And the winner is...
|