Re: expressions list -> equations list
- To: mathgroup at smc.vnet.net
- Subject: [mg83970] Re: [mg83928] expressions list -> equations list
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 6 Dec 2007 02:34:48 -0500 (EST)
- Reply-to: hanlonr at cox.net
Thread[{a, b, c} == 0]
{a == 0, b == 0, c == 0}
Solve[{a + 2, b - 3, c} == 0, {a, b, c}]
{{a -> -2, b -> 3, c -> 0}}
Reduce[{a + 2, b - 3, c} == 0, {a, b, c}]
c == 0 && b == 3 && a == -2
Bob Hanlon
---- Hauke Reddmann <fc3a501 at uni-hamburg.de> wrote:
> 1st of all THX to all who answered my last question. Just one other befor=
e
> I lend a Mathematica manual from the public lib and pester you no more :-=
)
>
> So. Now that I have a tensor it must vanish identically. I Flatten[] it f=
irst
> and then I have a list of equations...oh, stop, I haven't. REDUCE (if I m=
ay
> mention the name of a competition :-) could take a Solve[] now because it=
> automatically assumes a "=0" as default but Mathematica is anally-reten=
tive
> (a good thing :-) and I somehow must turn {a,b,c} into {a=0,b=0,c=0=
}.
> Convert to string, global change "," -> "=0," and "}" -> "=0}", recon=
vert
> to list? Is that possible? Or is there a less LISP-hack-style solution?
>
> --
> Hauke Reddmann <:-EX8 fc3a501 at uni-hamburg.de
> Er-a svo gott sem gott kve=C3=B0a
> =C3=B6l alda sonum, =C3=BEv=C3=AD a=C3=B0 f=C3=A6rra veit
> er fleira drekkur s=C3=ADns til ge=C3=B0s gumi.
>