Re: [sage-support] Sage Scripts

2011-04-09 Thread Justin C. Walker
On Apr 9, 2011, at 22:23 , nkulmati wrote: > Hi All, I am a newbie to Sage. My main purpose is to write scripts > (algorithms). That is, I am not interested in the "answer-question" > approach of the notebook, but I want to write and execute ".sage" > files using sage just as I do with ".m" files

[sage-support] Sage Scripts

2011-04-09 Thread nkulmati
Hi All, I am a newbie to Sage. My main purpose is to write scripts (algorithms). That is, I am not interested in the "answer-question" approach of the notebook, but I want to write and execute ".sage" files using sage just as I do with ".m" files using Matlab, for example. So I found this page: ht

[sage-support] sage scripts

2009-05-21 Thread flori
Hay all I would like to write a script using sage and I just followed the tutorial page 82. I copied the example #!/usr/bin/env sage -python import sys from sage.all import * if len(sys.argv) != 2: print "Usage: %s "%sys.argv[0] print "Outputs the prime factorization of n." sys.exit(1