Maxima/Ecl on 32-bit machine cannot evaluate "apply(union, listify({{..}}))"
Subject: Maxima/Ecl on 32-bit machine cannot evaluate "apply(union, listify({{..}}))"
From: Stavros Macrakis
Date: Thu, 4 Sep 2008 00:07:50 -0400
On 9/3/08, Barton Willis <willisb at unk.edu> wrote:
>
> (%i2) xreduce('union,create_list({i},i,1,10000))$
> Evaluation took 161.4600 seconds (161.4600 elapsed)
>
> (%i3) tree_reduce('union,create_list({i},i,1,10000))$
> Evaluation took 0.3600 seconds (0.3600 elapsed)
>
>
> For this test, tree_reduce is so much faster, it makes me
> think it's buggy.
But it gives the correct result!
I tried all three for 1000, and they all gave the same (correct)
result, but the times were l:1.05, r:0.88, tree:0.02.
-s