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}
- Follow-Ups:
- Re: Question about Thread & Total
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: Question about Thread & Total