On Sat, Jul 25, 2009 at 1:54 PM, Justin C. Walker <[email protected]> wrote:
> I just tried this on 4.0.2 and 4.1 (on Mac OS X, 10.5.7), and got the
> same values before and after the loop, so something else must be
> involved.
>
Justin,
Thanks for your response! Did you run it from the command line or the
notebook? I noticed that in the notebook, the code does create a problem,
but random values do.
Can you try the following code?
import random
print get_memory_usage()
for i in xrange(100000):
x=random.randint(10,100)
y=random.randint(0,x)
r=binomial(x,y)
print get_memory_usage()
I tried the above code on sagenb.org, and get this output:
730.6328125
736.5625
I have Sage 4.1 on a Fedora 9 32-bit machine, and Sage 4.0.1 on a Fedora 8
64-bit machine. I wonder if that's creating a problem.
Thanks for your help!
Stephen
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---