[sage-support] Re: Problems with standalone python/sage scripts

2008-01-18 Thread Ondrej Certik
On Jan 19, 2008 7:38 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Jan 18, 2008 10:00 PM, Georg Grafendorfer > <[EMAIL PROTECTED]> wrote: > > Michael, > > OK, i'm already a bit confused, and i don't know any more what your > > requesting exactly, so i will repeat some things: > > > > The file

[sage-support] Re: Problems with standalone python/sage scripts

2008-01-18 Thread Ondrej Certik
On Jan 19, 2008 7:38 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Jan 18, 2008 10:00 PM, Georg Grafendorfer > <[EMAIL PROTECTED]> wrote: > > Michael, > > OK, i'm already a bit confused, and i don't know any more what your > > requesting exactly, so i will repeat some things: > > > > The file

[sage-support] Re: Problems with standalone python/sage scripts

2008-01-18 Thread Ondrej Certik
On Jan 18, 2008 10:00 PM, Georg Grafendorfer <[EMAIL PROTECTED]> wrote: > Michael, > OK, i'm already a bit confused, and i don't know any more what your > requesting exactly, so i will repeat some things: > > The file with the name ./example.sage > #!/home/georg/Daten/.System/bin/sage/sage -python

[sage-support] Re: graphs(n) behavior under restriction

2008-01-18 Thread kcrisman
> I got my information in the previous post from doing > > sage: graphs? > > After the (gigantic) list of graphs, it gave the options and > documentation for calling graphs(). It wasn't very obvious in the first > few pages of documentation that you could call graph directly, though. > I think t

[sage-support] Sage 2.10 released!

2008-01-18 Thread mabshoff
Hello folks, Sage 2.10 has been released on January 18th, 2008. It is available at http://sagemath.org/download.html * About Sage (http://www.sagemath.org) Sage is developed by volunteers and combines 71 open source packages. It is available for download from sagemath.org and its mi

[sage-support] Re: graphs(n) behavior under restriction

2008-01-18 Thread Jason Grout
kcrisman wrote: > Hi Jason - good to hear from you. > > Hmm, now I'm really stumped. Unfortunately, the online documentation > is all messed up - nodes misplaced and everything - and it's only deep > within the bowels of graph_generators.py that this information is > found. I think this is new

[sage-support] Re: graphs(n) behavior under restriction

2008-01-18 Thread kcrisman
Hi Jason - good to hear from you. Hmm, now I'm really stumped. Unfortunately, the online documentation is all messed up - nodes misplaced and everything - and it's only deep within the bowels of graph_generators.py that this information is found. I think this is new since my installation. Howe

[sage-support] Re: graphs(n) behavior under restriction

2008-01-18 Thread Jason Grout
kcrisman wrote: > Using Sage 2.8.12 (attempted on the notebook servers with current > version, but the one my account is one is sagenb.org and never gave an > output at all), the following behavior happens: > > sage: L = list(graphs(3, lambda H: H.size() <=3)) > sage: len(L) > 8 > > Yet, > > sa

[sage-support] Re: Problems with standalone python/sage scripts

2008-01-18 Thread Georg Grafendorfer
Michael, OK, i'm already a bit confused, and i don't know any more what your requesting exactly, so i will repeat some things: The file with the name ./example.sage #!/home/georg/Daten/.System/bin/sage/sage -python import sys gives me that strange mouse behaviour where the mouse pointer changes t

[sage-support] graphs(n) behavior under restriction

2008-01-18 Thread kcrisman
Using Sage 2.8.12 (attempted on the notebook servers with current version, but the one my account is one is sagenb.org and never gave an output at all), the following behavior happens: sage: L = list(graphs(3, lambda H: H.size() <=3)) sage: len(L) 8 Yet, sage: L = list(graphs(3, lambda H: H.siz

[sage-support] Re: exponentiation bug?

2008-01-18 Thread Mike Hansen
On Jan 18, 2008 12:24 PM, Georg Grafendorfer <[EMAIL PROTECTED]> wrote: > OK, thanks, so sage-python just refers to the "sage-version" of python > instead of the systems own python version and nothing else !? Correct. --Mike --~--~-~--~~~---~--~~ To post to this

[sage-support] Re: exponentiation bug?

2008-01-18 Thread Georg Grafendorfer
OK, thanks, so sage-python just refers to the "sage-version" of python instead of the systems own python version and nothing else !? Georg --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send e

[sage-support] Re: Problems with standalone python/sage scripts

2008-01-18 Thread mabshoff
On Jan 18, 9:09 pm, "Georg Grafendorfer" <[EMAIL PROTECTED]> wrote: > Hi Robert, excuse me for the response delay, i did not notice your question, > > Does > > > > > #!/path/to/sage_root/local/bin/sage-python > > > work? > > no, the output is in both cases (sage -python as well as sage-python):

[sage-support] Re: Problems with standalone python/sage scripts

2008-01-18 Thread Georg Grafendorfer
Hi again, in my previous posting i had the lines #!/path/to/sage_root/local/bin sage-python #!/path/to/sage_root/local/bin sage- python instead of your request: #!/path/to/sage_root/local/bin/sage-python this gives me the same strange mouse effect as described in the original posting, whereas #

[sage-support] Re: Problems with standalone python/sage scripts

2008-01-18 Thread Georg Grafendorfer
Hi Robert, excuse me for the response delay, i did not notice your question, Does > > #!/path/to/sage_root/local/bin/sage-python > > work? no, the output is in both cases (sage -python as well as sage-python): bash: ./exp1.sage: /home/georg/Daten/.System/bin/sage/local/bin: bad interpreter: Keine

[sage-support] Re: exponentiation bug?

2008-01-18 Thread Mike Hansen
Hello, When you call, ./example.sage, it is being run by the Python interpreter with no preparsing done at all. Thus, 2^3 corresponds is interpreted as Python interprets it (not exponentiation). When you do "load example.sage", then it is preparsed by Sage, and your '^' gets changed to a "**" i

[sage-support] exponentiation bug?

2008-01-18 Thread Georg
Hi, following script example.sage (sage-2.9.3): #!/usr/bin/env sage-python print 2^3 print 2**3 outputs: $ ./example.sage 1 8 while sage:load "example.sage" 8 8 works as expected. Is this a bug or something one should consider when writing sage scripts? Or is it due to the problem that "#!/

[sage-support] Re: more on that sh: cannot create notebook.log: Permission denied

2008-01-18 Thread Luis Finotti
On Jan 18, 2008 11:52 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am in the same situation that he is in. I tried what you said and > the notebook won't open on my firefox. Wild guess here: I has some similar problems because of (possibly my improper use of) "sudo". You could try:

[sage-support] Re: can one modify how xdvi executes when "show" is invoked?

2008-01-18 Thread Luis Finotti
Hi, On Jan 18, 2008 12:16 AM, Rick Pember <[EMAIL PROTECTED]> wrote: > > I'm running sage remotely (see previous post to see why) and "show" > makes a somewhat blurry image. I found that using xdvi on a .dvi > file gave me the same problem -- so the problem is with my version > of xdvi, not sage

[sage-support] File Functions and Win path

2008-01-18 Thread mark h
i want to write some actuarial specifications in Sage. i want to create test cases in external files, so that they can also be used for the implementation testing. can i read/write data from external files ? can Sage process text ? i'm running on win platform. how do i construct path to file to

[sage-support] Re: more on that sh: cannot create notebook.log: Permission denied

2008-01-18 Thread [EMAIL PROTECTED]
I am in the same situation that he is in. I tried what you said and the notebook won't open on my firefox. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

[sage-support] Re: poly ring printing order

2008-01-18 Thread Martin Albrecht
On Friday 18 January 2008, Joel B. Mohler wrote: > Hi, > > The following snippet is from 2.9.3. What does the 'order' parameter do? > I thought it affected the order in which monomials appear in the string > representation. I wanted x^2+1 to print as '1+x^2' (i.e. small degree > appears first)

[sage-support] poly ring printing order

2008-01-18 Thread Joel B. Mohler
Hi, The following snippet is from 2.9.3. What does the 'order' parameter do? I thought it affected the order in which monomials appear in the string representation. I wanted x^2+1 to print as '1+x^2' (i.e. small degree appears first). sage: R.=PolynomialRing(QQ,order="degrevlex") sage: R.