Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13270 > unrolled thread

Question about Thread & Total

Started byThemis Matsoukas <tmatsoukas@me.com>
First post2013-01-26 06:37 +0000
Last post2013-01-26 06:37 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Question about Thread & Total Themis Matsoukas <tmatsoukas@me.com> - 2013-01-26 06:37 +0000

#13270 — Question about Thread & Total

FromThemis Matsoukas <tmatsoukas@me.com>
Date2013-01-26 06:37 +0000
SubjectQuestion about Thread & Total
Message-ID<kdvtjl$fob$1@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}

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web