Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13270 > unrolled thread
| Started by | Themis Matsoukas <tmatsoukas@me.com> |
|---|---|
| First post | 2013-01-26 06:37 +0000 |
| Last post | 2013-01-26 06:37 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Question about Thread & Total Themis Matsoukas <tmatsoukas@me.com> - 2013-01-26 06:37 +0000
| From | Themis Matsoukas <tmatsoukas@me.com> |
|---|---|
| Date | 2013-01-26 06:37 +0000 |
| Subject | Question 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}
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web