Hi,
   I have tried the standalone Python/Script at
http://www.sagemath.org/doc/html/tut/node55.html

to factorize a number.

#!/usr/bin/env sage

import sys
from sage.all import *

if len(sys.argv) != 2:
    print "Usage: %s <n>"%sys.argv[0]
    print "Outputs the prime factorization of n."
    sys.exit(1)

print factor(sage_eval(sys.argv[1]))


The script takes about 12s to factories 2006. But in the notebook,
it takes  less than 1 second.
I would like to use a standalone script from command line to do some
computation. Is there a way to speed it up ?

I am using Sage 3.0.3 on a Athlon 3200 64bit PC, running OpenSuse 11.

Thanks in advance for any assistance!

Shing


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to