MathGroup Archive 2007

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

Search the Archive

Re: expressions list -> equations list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83983] Re: [mg83928] expressions list -> equations list
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Thu, 6 Dec 2007 02:41:41 -0500 (EST)
  • References: <19456650.1196870803283.JavaMail.root@m35>
  • Reply-to: drmajorbob at bigfoot.com

For example,

vars = Array[a, 5]

{a[1], a[2], a[3], a[4], a[5]}

and then

Thread[vars == 0]

{a[1] == 0, a[2] == 0, a[3] == 0, a[4] == 0, a[5] == 0}

Bobby.

On Wed, 05 Dec 2007 06:01:40 -0600, Hauke Reddmann  
<fc3a501 at uni-hamburg.de> wrote:

> 1st of all THX to all who answered my last question. Just one other  
> before
> 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  
> first
> and then I have a list of equations...oh, stop, I haven't. REDUCE (if I  
> may
> mention the name of a competition :-) could take a Solve[] now because it
> automatically assumes a "=0" as default but Mathematica is  
> anally-retentive
> (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}", reconvert
> 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ða
>     öl alda sonum,     því að færra veit
>     er fleira drekkur     síns til geðs gumi.
>
>



-- 
DrMajorBob at bigfoot.com


  • Prev by Date: Real to String
  • Next by Date: Re: Convert Binary Image to Column Vector
  • Previous by thread: Re: expressions list -> equations list
  • Next by thread: Re: expressions list -> equations list