MathGroup Archive 2013

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

Search the Archive

Question about Thread & Total

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129576] Question about Thread & Total
  • From: Themis Matsoukas <tmatsoukas at me.com>
  • Date: Sat, 26 Jan 2013 01:37:55 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

I was wondering why the error message in the example below:

Thread[Total[{{1}, {2, 3}}]]

Total::tllen: Lists of unequal length in {{1},{2,3}} cannot be added. >>

{1, 5}

On the other hand, the construction below gives the same answer without complaints:

Thread[h[{{1}, {2, 3}}]] /. h -> Total

{1, 5}



  • Prev by Date: Re: NDSolve differences between mathematica 8 and 9
  • Next by Date: Re: NDSolve differences between mathematica 8 and 9
  • Previous by thread: Re: Differentiating Interpolation Functions -- "Delaunay" Interpolation
  • Next by thread: Re: Question about Thread & Total