Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Weird Print Result

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74210] Re: Weird Print Result
  • From: "Ray Koopman" <koopman at sfu.ca>
  • Date: Wed, 14 Mar 2007 03:53:49 -0500 (EST)
  • References: <et36rq$qgu$1@smc.vnet.net>

Bruce Colletti wrote:
> Re Mathematica 5.2 under WinXP.
>
> The code below creates the correct output, except for a strange concluding "4 Null."
>
> What does this weird last line of output mean (list length?), why does it print, and how can it be suppressed?
>
> Thankx.
>
> Bruce
>
>
> n = 2;
> T = Array[p, {n, n}];
> X0 = Array[x, {n}];
> X = (Expand /@ (X0.MatrixPower[T, 2]));
> Print /@ X[[1]]

You want  Scan[Print,X[[1]]]  instead of  Map[Print,X[[1]]].



  • Prev by Date: Re: draw question
  • Next by Date: Re: Replacement question
  • Previous by thread: Re: Weird Print Result
  • Next by thread: Can't resize BasicInput Palette