Re: Weird Print Result

*To*: mathgroup at smc.vnet.net*Subject*: [mg74183] Re: Weird Print Result*From*: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>*Date*: Tue, 13 Mar 2007 05:12:16 -0500 (EST)*Organization*: The Open University, Milton Keynes, UK*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]] > Add a semi-column at the end of the last expression: In[1]:= n = 2; T = Array[p, {n, n}]; X0 = Array[x, {n}]; X = Expand /@ (X0 . MatrixPower[T, 2]); Print /@ X[[1]]; Regards, Jean-Marc