[sage-support] Re: problem with AlternatingGroup

2007-05-30 Thread David Joyner
Thanks. I've applied David Harvey's patch to my permgroups.py fixes. The file itself is finished but I'm waiting for some minor fixes to be applied to some GAP functions which it wraps. I think my code is written correctly once the GAP functions are fixed but currently it won't pass doc tests. +

[sage-support] Re: problem with AlternatingGroup

2007-05-30 Thread David Joyner
I am towards the end of some major changes to permgroup.py which I'm about to submit. Can you just send me the diff or the entire Alternatinggroup function in an email? David Harvey wrote: > Fixed. Patch at > > http://sage.math.washington.edu/home/dmhar

[sage-support] Re: problem with AlternatingGroup

2007-05-30 Thread David Harvey
Fixed. Patch at http://sage.math.washington.edu/home/dmharvey/patches/ alternating_group.hg david On May 30, 2007, at 9:34 PM, David Harvey wrote: > > > On May 30, 2007, at 9:30 PM, Green Kobold wrote: > >> >> in the middle of a code (600 lines), i use a AlternatingGroup and get >> always the

[sage-support] Re: problem with AlternatingGroup

2007-05-30 Thread David Harvey
On May 30, 2007, at 9:30 PM, Green Kobold wrote: > > in the middle of a code (600 lines), i use a AlternatingGroup and get > always the same error: > > Traceback (most recent call last): > File "../../python/dev/wx-dev/granulador8.py", line 496, in MkSnd > MakeGrains(self.name) > File ".

[sage-support] problem with AlternatingGroup

2007-05-30 Thread Green Kobold
in the middle of a code (600 lines), i use a AlternatingGroup and get always the same error: Traceback (most recent call last): File "../../python/dev/wx-dev/granulador8.py", line 496, in MkSnd MakeGrains(self.name) File "../../python/dev/wx-dev/granulador8.py", line 335, in __init__

[sage-support] Re: Working with class groups + bug?

2007-05-30 Thread William Stein
Hi Utpal, Unfortunately number fields are not in the best shape in SAGE right now. There's been much discussion about this among some of the SAGE developers recently, and we will have a project about this at Sage Days 4 (which is in two weeks). So, basically, keep your questions and comments com

[sage-support] Working with class groups + bug?

2007-05-30 Thread Utpal Sarkar
To compute the abstract class group I can just create a number field K = QuadraticField(-23) and ask for it K.class_group() -> Multiplicative Abelian Group isomorphic to C3 Is there a way to obtain representatives of the ideal classes (like in Magma where there is a second return value that is a

[sage-support] Re: Error using Jones database of number fields

2007-05-30 Thread Utpal Sarkar
Fantastic, it works now! Thanks On May 31, 1:10 am, "William Stein" <[EMAIL PROTECTED]> wrote: > On 5/30/07, Utpal Sarkar <[EMAIL PROTECTED]> wrote: > > > When trying to use the Jones database I get an error. > > J = JonesDatabase() works correctly and creates the instance. > > J.ramified_at([2,

[sage-support] Why I chose SAGE

2007-05-30 Thread Ted Kosan
William wrote: >If it isn't too much trouble, if you have the time, >could you consider posting a rough list of some >of the factors that went into your decision, why you chose SAGE, how >other competitors fared, and what isn't perfect yet about SAGE for >your desired goals? I know some of that

[sage-support] Re: Symbolic rings

2007-05-30 Thread William Stein
On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > > So -- if you want to implement you suggestion, we just remove the import > > of predefined in calculus/all.py and put it in both all_cmdline.py and > > all_notebook.py. That's it. > > Would you take such a patch? No, since I just wrote one

[sage-support] Re: Error using Jones database of number fields

2007-05-30 Thread William Stein
On 5/30/07, Utpal Sarkar <[EMAIL PROTECTED]> wrote: > When trying to use the Jones database I get an error. > J = JonesDatabase() works correctly and creates the instance. > J.ramified_at([2,3,5]) generates an exception, both at my local > installation and when executing it on an online notebook a

[sage-support] Error using Jones database of number fields

2007-05-30 Thread Utpal Sarkar
When trying to use the Jones database I get an error. J = JonesDatabase() works correctly and creates the instance. J.ramified_at([2,3,5]) generates an exception, both at my local installation and when executing it on an online notebook at http://www.sagenb.org/. I copied the stack trace from the

[sage-support] Re: Symbolic rings

2007-05-30 Thread Joel B. Mohler
On Wednesday 30 May 2007 15:27, William Stein wrote: > Now *that* is a crystal clear suggestion. This would be trivial to > implement. Here's the current situation. > In devel/sage/sage there are three files: all.py, all_cmdline.py, and > all_notebook.py > When you do "from sage.all import *" e

[sage-support] Re: Clearing variables and converting Integers to base(n) strings.

2007-05-30 Thread Ted Kosan
David wrote: >Will you please let us know when your materials >are ready for distribution? Yes I will, and my current estimate is mid-summer. >There is this pycon 2004 paper which you might find interesting (if you >haven't seen it already): >http://www.python.org/pycon/dc2004/papers/15/ I h

[sage-support] Re: Symbolic rings

2007-05-30 Thread Bobby Moretti
On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > > > On Tuesday 29 May 2007 23:50, William Stein wrote: > > > Is there a global > > > toggle to turn on/off this behavior? I can see the value of this in an > > > interactive setting, but when programming I would sometimes rather get > > > an e

[sage-support] Re: Symbolic rings

2007-05-30 Thread William Stein
On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > Yes, I understand all that. My use of the word "inject" was probably wrong. > I'm just saying that these extra things which are nice for interactive use > from ipython pollute the namespace for people who write python programs which > have a

[sage-support] Re: Symbolic rings

2007-05-30 Thread Joel B. Mohler
On Wednesday 30 May 2007 14:00, Bobby Moretti wrote: > > On Wednesday 30 May 2007 12:14, William Stein wrote: > > > On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > > > > > There is currently no function to clear these, > > > > > so I just wrote one. The attached patch adds a function > >

[sage-support] Re: Symbolic rings

2007-05-30 Thread Bobby Moretti
On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > > > On Wednesday 30 May 2007 12:14, William Stein wrote: > > On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > > > > There is currently no function to clear these, > > > > so I just wrote one. The attached patch adds a function > clear

[sage-support] Re: Symbolic rings

2007-05-30 Thread Joel B. Mohler
On Wednesday 30 May 2007 12:14, William Stein wrote: > On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > > > There is currently no function to clear these, > > > so I just wrote one. The attached patch adds a function clear_vars() > > > that when called removes all 1-letter symbolic variab

[sage-support] Re: Symbolic rings

2007-05-30 Thread William Stein
On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > > There is currently no function to clear these, > > so I just wrote one. The attached patch adds a function clear_vars() > > that when called removes all 1-letter symbolic variables that are > > currently defined. > > I absolutely agree wi

[sage-support] Re: Symbolic rings

2007-05-30 Thread Joel B. Mohler
On Tuesday 29 May 2007 23:50, William Stein wrote: > > Is there a global > > toggle to turn on/off this behavior? I can see the value of this in an > > interactive setting, but when programming I would sometimes rather get > > an error when trying to refer to a previously undefined object. > > The