MathGroup Archive 2013

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

Search the Archive

Question about Thread & Total


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