axiom-mail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-mail] A slow summation


From: Alasdair McAndrew
Subject: [Axiom-mail] A slow summation
Date: Thu, 14 Jun 2007 11:33:59 +1000

Wondering about nice little numeric exercises to help introduce Axiom to a small group of students, I attempted to sum the first 20000 reciprocals:

reduce(+,[1.0/i for i in 1...20000])

This works, but is (I think) unreasonably slow; it takes over 21 seconds on my computer.  The equivalent command in Maxima takes less than 1 second.  Is there any way of encouraging Axiom to be faster here?

Thanks,
Alasdair

reply via email to

[Prev in Thread] Current Thread [Next in Thread]