MathGroup Archive 2004

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

Search the Archive

Re: Tr vs Total


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/


  • 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