[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Jean-Pierre Flori
Ok, I have finally looked at the comparison functions and exchanging : cmpval = seq[0].coeff.compare(other.exponent); by cmpval = -seq[0].coeff.compare(other.exponent); in mul::compare_pow (mul.cpp:1265) seems to prevent the above bug from happening. It seems to fit better with the change made by

[sage-support] Global variables called in a function

2010-09-29 Thread Walker
Hi everybody. I'm experiencing problems with global variables in Sage. In particular, I noticed that if I create a global variable, that one is known everywhere and it's possible to call it everywhere. If I make an assignment to a variable with the same name of the global one, but inside a

[sage-support] Re: Global variables called in a function

2010-09-29 Thread Simon King
Hi Walker! On 29 Sep., 16:42, Walker ebwal...@gmail.com wrote: ... My question is: is there a way to make Sage not creating a global variable but assigning directly the global one? This is actually a Python question. It would of course be very dangerous if variables defined outside a function

Re: [sage-support] Global variables called in a function

2010-09-29 Thread Justin C. Walker
On Sep 29, 2010, at 07:42 , Walker wrote: Hi everybody. I'm experiencing problems with global variables in Sage. In particular, I noticed that if I create a global variable, that one is known everywhere and it's possible to call it everywhere. If I make an assignment to a variable with the

Re: [sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Burcin Erocal
Hi, On Wed, 29 Sep 2010 07:00:39 -0700 (PDT) Jean-Pierre Flori jpfl...@gmail.com wrote: Ok, I have finally looked at the comparison functions and exchanging : cmpval = seq[0].coeff.compare(other.exponent); by cmpval = -seq[0].coeff.compare(other.exponent); in mul::compare_pow (mul.cpp:1265)

[sage-support] Re: Global variables called in a function

2010-09-29 Thread Walker
It seems it has solved my issue, many thanks all of you; I'll attach a snipped of code next time. I knew Sage is based on Pyton, but what I don't know is where the first ends and the second begins, so I usually think my issue is a Sage's one... Anyway, thank you: it was helpful. -- To post to

Re: [sage-support] Re: Global variables called in a function

2010-09-29 Thread Robert Bradshaw
On Wed, Sep 29, 2010 at 8:18 AM, Simon King simon.k...@nuigalway.ie wrote: Hi Walker! On 29 Sep., 16:42, Walker ebwal...@gmail.com wrote: ... My question is: is there a way to make Sage not creating a global variable but assigning directly the global one? This is actually a Python question.

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Jean-Pierre Flori
Hi, Maybe it is a good thing to keep the same order as ginac internally and your more usual ordering for printing. However if you'd better not duplicate code, I can look at the - x^2+x^2 part of bug #9046. Now I may understand a big enough part of pynac code to do that. But if you'd better use

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Jean-Pierre Flori
My first guess for #9046 is that the problem is located within the last line of collect : return x + (*this-x).expand(); In that case (*this-x).expand() should be zero but looks like: -x^2 - 2*y^3 - y^2*z + x^2 + 2*y^3 + y^2*z I think that whithin the call to expand(),

[sage-support] creating a test environment

2010-09-29 Thread Johannes
Hi list, is it possible to create in a given environment in sage a new one, which know all in the parent defined variables and values, and i i leave it again, ijust get back to my old values? i'd like to have this, because i have to test and compare different calculations based on the same data

Re: [sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Burcin Erocal
On Wed, 29 Sep 2010 09:48:25 -0700 (PDT) Jean-Pierre Flori jpfl...@gmail.com wrote: Maybe it is a good thing to keep the same order as ginac internally and your more usual ordering for printing. It is good to keep the ginac ordering internally. The user friendly ordering is more expensive so

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Jean-Pierre Flori
On 29 sep, 20:28, Burcin Erocal bur...@erocal.org wrote: On Wed, 29 Sep 2010 09:48:25 -0700 (PDT) Jean-Pierre Flori jpfl...@gmail.com wrote: Maybe it is a good thing to keep the same order as ginac internally and your more usual ordering for printing. It is good to keep the ginac

[sage-support] Re: creating a test environment

2010-09-29 Thread Jason Bandlow
On 09/29/2010 01:47 PM, Johannes wrote: Hi list, is it possible to create in a given environment in sage a new one, which know all in the parent defined variables and values, and i i leave it again, ijust get back to my old values? Is this what you're looking for?

Re: [sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-29 Thread Burcin Erocal
On Wed, 29 Sep 2010 12:57:54 -0700 (PDT) Jean-Pierre Flori jpfl...@gmail.com wrote: On 29 sep, 20:28, Burcin Erocal bur...@erocal.org wrote: On Wed, 29 Sep 2010 09:48:25 -0700 (PDT) Jean-Pierre Flori jpfl...@gmail.com wrote: Maybe it is a good thing to keep the same order as ginac

Re: [sage-support] Re: creating a test environment

2010-09-29 Thread Johannes
nearly, i work with save_session and load_session rigthn now, but i need something like a fast switch between some environments like this: do some stuff create_snapshot(sshot1) do some more stuff create_snapshot(sshot2) once again stuff switch_snapshot(sshot1) #here sshot2 is saved in the last

[sage-support] unable to start Sage notebook after VMware/Windows crash

2010-09-29 Thread Brian
Hi, I'm using Sage in a commercial environment to perform physics simulations of optical systems. As our computing environment is XP, I'm running Sage on WinXP in VMware Player 3.1.0 build-261024. This morning, after suspending my machine, the VMware player froze. I had to either power down, or

[sage-support] Re: Matrices over FreeMonoid-linear combinations

2010-09-29 Thread mhs
Hi again, in the meantime I made some progress on my problem: I use FreeMonoid to generate the set of finite words, I use FormalSums over the integers to get the linear combinations and I wrote a simple method to multiply two such formal sums (should this go into the class of FormalSums?). The

[sage-support] Re: unable to start Sage notebook after VMware/Windows crash

2010-09-29 Thread Brian
cont'd. Oops. my apologies, I have Sage 4.4.alpha0 running on that VMware player 3.1.0 build-261024... Brian On Sep 29, 1:31 pm, Brian brian.k...@fantasia.net wrote: Hi, I'm using Sage in a commercial environment to perform physics simulations of optical systems. As our computing environment

Re: [sage-support] unable to start Sage notebook after VMware/Windows crash

2010-09-29 Thread Dan Drake
On Wed, 29 Sep 2010 at 01:31PM -0700, Brian wrote: If I start Sage from the command line, I get the following messages: Please wait while the Sage Notebook server starts... ... Traceback (most recent call last): [...] File /home/sage/sage/local/lib/python2.6/site-packages/

[sage-support] [sage-newbie] 3d plotting doesn't work

2010-09-29 Thread Benjamin Parker
I'm assuming its supposed to run gnuplot...? I have sage compiled from source code on one computer and am running the Ubuntu version on another. Both computers are using Debian. The command doesn't output any error messages; it just pauses and returns to the prompt. I've installed gnuplot

[sage-support] Re: [sage-newbie] 3d plotting doesn't work

2010-09-29 Thread Jason Grout
On 9/29/10 9:18 PM, Benjamin Parker wrote: I'm assuming its supposed to run gnuplot...? I have sage compiled from source code on one computer and am running the Ubuntu version on another. Both computers are using Debian. The command doesn't output any error messages; it just pauses and returns

[sage-support] Re: [sage-newbie] 3d plotting doesn't work

2010-09-29 Thread Jason Grout
On 9/29/10 9:29 PM, Jason Grout wrote: Also, it would probably be better to ask on the sage-support mailing list. I don't know how many people read this list, and I think this is the first message I've seen on it in a long time. I didn't even know it still existed until I just saw your message.

[sage-support] Re: unable to start Sage notebook after VMware/Windows crash

2010-09-29 Thread Brian
Thanks, Dan. I'll give that a try. I had figured that was probably the case - but had no way to efficiently figure out what had gotten chomped on by the crash, as I'm very far from a Python guru. Brian -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from