MathGroup Archive 2009

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

Search the Archive

Re: Displaying results in a column

  • To: mathgroup at
  • Subject: [mg104958] Re: Displaying results in a column
  • From: AES <siegman at>
  • Date: Sun, 15 Nov 2009 05:54:42 -0500 (EST)
  • Organization: Stanford University
  • References: <hdgr97$jeq$> <hdlk5v$he1$>

In article <hdlk5v$he1$1 at>,
 David Bailey <dave at> wrote:

> > 
> > {expr1, "\n"expr2, "\n"expr3, "\n"expr4, . . . }
> > 
> > seems to work just fine (in putting sequential expressions on sequential lines)
> > 

> Note that as written, you are actually multiplying the subsequent 
> expressions by the string "\n"! If one of your expressions happens to 
> evaluate to 1, you will get a surprise! You should use Column, as others 
> have already pointed out.

Haven't tried your surprise yet -- but I was surprised to find that

    "\n"expr1a + expr1b    and   "\n"(expr1a+expr1b)

functioned differently -- and now I understand why.

Is multiplying a general expression by a string ("\n") actually legal 
syntax? (and if not, should my using it have triggered an error 

  • Prev by Date: Solving Ordinary differential equations by NDSolve
  • Next by Date: Re: Error when working with a derivative
  • Previous by thread: Re: Displaying results in a column
  • Next by thread: Re: Re: Displaying results in a column