MathGroup Archive 2009

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

Search the Archive

Re: Displaying results in a column

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104951] Re: Displaying results in a column
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Sat, 14 Nov 2009 01:57:51 -0500 (EST)
  • References: <hdgr97$jeq$1@smc.vnet.net>

AES wrote:
> I don't know if the following is legal or not or what dangers may lurk 
> within it, and I recognize that other more formal methods exist, but if 
> you just want to display a list (meaning the results from evaluating a 
> series of expressions in that list) as a series of individual lines, the 
> input syntax
> 
> {expr1, "\n"expr2, "\n"expr3, "\n"expr4, . . . }
> 
> seems to work just fine --  and could hardly be simpler to code.
> 
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.

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: Mathematica 7 under Wine
  • Next by Date: Re: Mathematica skill level snippet(s)
  • Previous by thread: Re: Displaying results in a column
  • Next by thread: Re: Displaying results in a column