[sage-devel] Longest element in a Coxeter Group - name decision

2013-03-05 Thread Kannappan Sampath
Hello friends, I am writing this mail to ask for your help in a naming decision. In the file sage/categories/finite_coxeter_groups.py, there is a function called long_element. The docstring asks if this should be renamed and if so, to what? There are two suggestions from the authors: longest_elem

[sage-devel] Re: Longest element in a Coxeter Group - name decision

2013-03-05 Thread tom d
I think longest_element is fine; long_word indicates that there will be a word returned instead of an element, which is maybe not what we're after here. Wiser minds than mine will have more knowledge of how to handle deprecation, but here's an example from skew_partition.py: sage: x.r_quotient

[sage-devel] Re: strange behavior of sage

2013-03-05 Thread tom d
Yes, I would support such a warning; I've even led tutorials with new sage users where defining things called 'max' or 'min' has seemed an obvious thing to do and then minutes later been a problem as the default function was unavailable. On Tuesday, March 5, 2013 12:36:33 AM UTC+3, luisfe wrote

Re: [sage-devel] Bug in Heilbronn Matrix

2013-03-05 Thread David Loeffler
On 5 March 2013 06:54, Peng Tian wrote: > Dear David, > You are right. I tried to change the data type of the code in sage, which is > "int" type in the source code of SAGE and now I'm using "long int" instead. > The previous error is gone and everything is working well now. > > Thanks a lot! > >

[sage-devel] MySQL-python

2013-03-05 Thread Chris
Hello all, I'm trying to install mysql-python within the sage shell on a Mac (OS X 10.8). Outside of the sage shell, I can install it, by typing: easy_install mysql-python but within the sage shell I get the following error: Running MySQL-python-1.2.4/setup.py -q bdist_egg --dist-dir /var/fol

[sage-devel] Plot label notation, possible mistake in http://www.sagemath.org/doc/reference/sage/plot/plot.html

2013-03-05 Thread Brad Burkman
I was reading through the documentation at http://www.sagemath.org/doc/reference/sage/plot/plot.html and came across this section that makes no sense. * When the labels have quite different orders of magnitude or are very large, scientific notation (the e notation for powers of te

[sage-devel] Re: Plot label notation, possible mistake in http://www.sagemath.org/doc/reference/sage/plot/plot.html

2013-03-05 Thread kcrisman
On Tuesday, March 5, 2013 11:18:27 AM UTC-5, Brad Burkman wrote: > > I was reading through the documentation at > > http://www.sagemath.org/doc/reference/sage/plot/plot.html > > and came across this section that makes no sense. > > * > > When the labels have quite different orders of m

[sage-devel] Re: Multiline math equations in documentation

2013-03-05 Thread Travis Scrimshaw
Hey everyone, My guess is that the reason it works is because MathJax is being forgiving > in how it parses things. I don't know if MathJax has a "strict" setting > which would complain in these cases. > Hmm...well at least behavior will now be documented. > > I think the developer's guide cou

[sage-devel] Sage review in CMJ

2013-03-05 Thread kcrisman
See http://www.maa.org/pubs/cmj_mar13.html and your local library (or online, if you have access) for Jeff Denny's review of Sage in the just-appeared College Math Journal. It is even-handed but overall very positive. Enjoy! Minh/Harald - can you add this to the bibliography online? -- You

[sage-devel] Re: Plot label notation, possible mistake in http://www.sagemath.org/doc/reference/sage/plot/plot.html

2013-03-05 Thread Brad Burkman
Karl-Deiter: plot(x^3,(x,0,500),ticks=[[],[]]) worked. Thanks. On Tuesday, March 5, 2013 10:18:27 AM UTC-6, Brad Burkman wrote: > > I was reading through the documentation at > > http://www.sagemath.org/doc/reference/sage/plot/plot.html > > and came across this section that makes no sens

[sage-devel] debug() is not working in the notebook

2013-03-05 Thread Andrey Novoseltsev
Hello, debug() in a new cell after 1/0 does not work for me with "IndexError: string index out of range" message. This is using Sage 5.7 or 5.8.beta2, while 5.5 shows the interact William has added a while ago. Is this a regression (due to IPython upgrade?) or should I build Sage somehow different

[sage-devel] Re: MySQL-python

2013-03-05 Thread Chris Berg
Solved it. In the sage shell, I wrote: export CC="/usr/bin/gcc" and then easy_install worked On Tuesday, 5 March 2013 11:00:55 UTC-5, Chris Berg wrote: > > Hello all, > > I'm trying to install mysql-python within the sage shell on a Mac (OS X > 10.8). Outside of the sage shell, I can install it

Re: [sage-devel] Re: How reliable is patchbot's startup_time plugin?

2013-03-05 Thread Robert Bradshaw
On Mon, Mar 4, 2013 at 3:41 AM, Simon King wrote: > Hi Jeroen, > > On 2013-03-04, Jeroen Demeyer wrote: >> On 2013-03-04 12:01, Simon King wrote: >>> +With 99.3% confidence, startup time decreased by at least 0.1% >>> +With 99.4% confidence, startup time increased by at least 0.1% >> >>> Sinc

Re: [sage-devel] Bug in Heilbronn Matrix

2013-03-05 Thread Robert Bradshaw
On Tue, Mar 5, 2013 at 7:39 AM, David Loeffler wrote: > On 5 March 2013 06:54, Peng Tian wrote: >> Dear David, >> You are right. I tried to change the data type of the code in sage, which is >> "int" type in the source code of SAGE and now I'm using "long int" instead. >> The previous error is go

Re: [sage-devel] Re: Bug in sage -startuptime?

2013-03-05 Thread Robert Bradshaw
On Wed, Feb 27, 2013 at 2:24 AM, Simon King wrote: > Hi Volker, > > On 2013-02-27, Volker Braun wrote: >> The output of "sage -startuptime" only lists the 50 slowest modules, not >> all. > > OK. But *with* the patch, sage.plot.graphics is the 6th slowest module, > and much much slower than _ssl,

Re: [sage-devel] Bug in Heilbronn Matrix

2013-03-05 Thread William Stein
On Tue, Mar 5, 2013 at 10:55 AM, Robert Bradshaw wrote: > On Tue, Mar 5, 2013 at 7:39 AM, David Loeffler > wrote: >> On 5 March 2013 06:54, Peng Tian wrote: >>> Dear David, >>> You are right. I tried to change the data type of the code in sage, which is >>> "int" type in the source code of SAGE

[sage-devel] Re: [sage-combinat-devel] Re: Longest element in a Coxeter Group - name decision

2013-03-05 Thread Nicolas M. Thiery
On Tue, Mar 05, 2013 at 03:11:00AM -0800, tom d wrote: >I think longest_element is fine; Ok for me, unless someone finds something better. >long_word indicates that there will be a word returned instead of >an element, which is maybe not what we're after here. +1 Thanks Kannappan f

[sage-devel] lazy importing modules / segfault with lazy import

2013-03-05 Thread Nicolas M. Thiery
Hi Robert, Volker and other fans of lazy import! Working on #4327 made me want to be able to lazy import a full module. That is have: lazy_import("sage.combinat.root_system.plot") be a lazy analogue of: import sage.combinat.root_system.plot Currently lazy_import complai