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


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

Question about Thread & Total

From Themis Matsoukas <tmatsoukas@me.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Question about Thread & Total
Date 2013-01-26 06:37 +0000
Message-ID <kdvtjl$fob$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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}

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web