MathGroup Archive 2004

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

Search the Archive

Re: Tr vs Total

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49351] Re: [mg49346] Tr vs Total
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Fri, 16 Jul 2004 06:06:33 -0400 (EDT)
  • References: <200407151100.HAA11171@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 15 Jul 2004, at 20:00, Daniel Reeves wrote:

> *This message was transferred with a trial version of CommuniGate(tm) 
> Pro*
> Tr seems to have a problem with big lists.  Anyone know why the 
> following
> 2 expressions don't yield the same result?
>
> Tr[Table[8000000, {269}]]
>
> Total[Table[8000000, {269}]]
>
> (they do if you make either of those constants smaller)
>
>
> -- 
> http://ai.eecs.umich.edu/people/dreeves  - -  google://"Daniel Reeves"
>
>

I would say its a bug involving Tr and packed arrays:

Tr[Developer`FromPackedArray[Table[8000000, {269}]]]


2152000000



Andrzej Kozlowski
Chiba, Japan
http://www.mimuw.edu.pl/~akoz/


  • References:
  • Prev by Date: Re: definite integral
  • Next by Date: Re: Sum of list elements
  • Previous by thread: Re: Tr vs Total
  • Next by thread: Re: Tr vs Total