On 9/27/07, Jason Grout <[EMAIL PROTECTED]> wrote:
> > * FYI: Maple also uses GMP. I don't think Mathematica does (based on
> > my limited testing showing it to be slower at integer arithmetic).
> >
>
> The other day I attended a training session on Mathematica and the
> Wolfram representative specifically stated (well, had it on a slide)
> that Mathematica used GMP. I was going to ask about the LGPL3 issues,
> but we ran out of time.
Thanks for the correction. Indeed, you're right:
[EMAIL PROTECTED]:/usr/local/math/mathematica-6.0.1$ find . |grep -i gmp
./SystemFiles/Libraries/Linux/libgmp.so.3
./SystemFiles/Libraries/Linux-x86-64/libgmp.so.3
[EMAIL PROTECTED]:/usr/local/math/mathematica-6.0.1$
Maybe they ship a generic gmp built without any of the
patches. E.g., on sage.math (an opteron running Linux)
Mathematica 5.2 takes 29 seconds on this benchmark
and Sage and Magma both take 9 seconds.
sage: mathematica.eval('Timing[3^100000000*5^10000000;]')
{29.1098 Second, Null}
sage: time n=3^100000000*5^10000000
CPU times: user 8.94 s, sys: 0.57 s, total: 9.52 s
Wall time: 9.61
sage: magma.eval('time a := 3^100000000*5^10000000;')
'Time: 9.240'
(Mathematica-5.2 definitely includes gmp also).
----
On my core2duo laptop, which has Mathematica 6.0.1,
mathematica does better, but still Sage and Magma are
faster:
sage: mathematica.eval('Timing[3^100000000*5^10000000;]')
{13.4408, Null}
sage: time n=3^100000000*5^10000000
CPU times: user 7.53 s, sys: 0.44 s, total: 7.98 s
Wall time: 7.97
sage: magma.eval('time a := 3^100000000*5^10000000;')
'Time: 8.250'
-- William
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---