Re: [sage-devel] Depreciated is_AlgebraElement function

2012-03-25 Thread Mike Hansen
On Sun, Mar 25, 2012 at 11:06 PM, Starx wrote: > 1) How are functions depreciated?  I ran > search_src("is_AlgebraElement") and looked at all the results and I > can only find this function occurring in either its definition or in > import statements.  How does sage know to print a depreciation wa

[sage-devel] Depreciated is_AlgebraElement function

2012-03-25 Thread Starx
I was looking at the function is_AlgebraElement which needs a doctest. When I called it in sage (to come up with a doctest) I got a depreciation warning: sage: is_AlgebraElement(e) /Users/Starx/sage-dev/local/bin/sage-ipython:1: DeprecationWarning: Using is_AlgebraElement from the top level is de

[sage-devel] Re: seg fault in ideal containment

2012-03-25 Thread Simon King
On 2012-03-26, Simon King wrote: > So, it is a bug, and I am about to open a trac ticket for it. It is http://trac.sagemath.org/sage_trac/ticket/12748 Cheers, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-dev

[sage-devel] Re: seg fault in ideal containment

2012-03-25 Thread Simon King
On 2012-03-26, Ben Hutz wrote: > Traceback (most recent call last): > ... > RuntimeError: Segmentation fault Oh, and by the way: What you get is a RuntimeError, not a segmentation fault in Sage (apparently Sage only complains about a segmentation fault in the backend of the polynomial computation

[sage-devel] Re: seg fault in ideal containment

2012-03-25 Thread Simon King
Hi Ben, On 2012-03-26, Ben Hutz wrote: > R.=PolynomialRing(QQ,order=TermOrder('degrevlex', > 6) + TermOrder('degrevlex',10)) One could argue that weird things are expected to happen if the term order simply does not match the number of variables. However, I'd prefer to see a ValueError being ra

[sage-devel] Re: .coefficient() inconsistency

2012-03-25 Thread Simon King
Hi Ben, On 2012-03-26, Ben Hutz wrote: > In working with polynomials > > R.=PolynomialRing(ZZ) > F=x^2*y-2*x^2-x > print F.coefficients()[0].parent() > print F.coefficient({x:2,y:1}).parent() > > The first returns the base ring (ZZ) and the second the multivariable > polynomial ring. The documen

[sage-devel] seg fault in ideal containment

2012-03-25 Thread Ben Hutz
I almost forgot about my 5th one: a seg fault. I'm running 'Sage Version 4.8, Release Date: 2012-01-20' on an intel processor on Ubuntu 11.10 R.=PolynomialRing(ZZ,1) F=x0^4-2*x0^2-x0 R.=PolynomialRing(QQ,order=TermOrder('degrevlex', 6) + TermOrder('degrevlex',10)) I = Ideal([a0-z1*z0,a1-(z1*y0 +

[sage-devel] Re: is_PrimeField error

2012-03-25 Thread Ben Hutz
Sure. I have been developing via loaded files and not directly in the library, so it may take me a little bit to get a development branch set-up and get a patch made correctly, but since my eventual goal is to get the arithmetic dynamcis tools directly into sage, it seems like good idea to do a nic

[sage-devel] symmetric polynomial decomposition problem

2012-03-25 Thread Ben Hutz
There are two parts to this: First is that a constant term (e[]) cannot be expanded R.=PolynomialRing(QQ) g=x+y+1 Sym = SymmetricFunctions(QQ) e=Sym.e() #elementary symmetric functions m = Sym.m() gm=m.from_polynomial(g) e(gm).expand(2) ValueError: max() arg is an empty sequence ---

[sage-devel] polynomial resultant problem

2012-03-25 Thread Ben Hutz
The resultant of two homogeneous polynomials can return an incorrect value: R.=PolynomialRing(ZZ) f=6*x^2 + x*y + y^2 g=y^2 print f.resultant(g) m=matrix([[6,1,1,0],[0,6,1,1],[0,0,1,0],[0,0,0,1]]) m.determinant() notice that the coefficient of the f.resultant(g) does not match the integer determin

Re: [sage-devel] is_PrimeField error

2012-03-25 Thread David Roe
Ah ha! Apparently that function is not used anywhere in Sage. It's just a typo: it should be "from finite_rings.constructor import is_FiniteField. Want to practice your new developer skills by opening a ticket and submitting a patch? I'll review it David On Mon, Mar 26, 2012 at 02:41, Ben

[sage-devel] .coefficient() inconsistency

2012-03-25 Thread Ben Hutz
In working with polynomials R.=PolynomialRing(ZZ) F=x^2*y-2*x^2-x print F.coefficients()[0].parent() print F.coefficient({x:2,y:1}).parent() The first returns the base ring (ZZ) and the second the multivariable polynomial ring. I can definitely see that since you could call F.coefficient({x:2})

[sage-devel] is_PrimeField error

2012-03-25 Thread Ben Hutz
Hi all, I'm fairly new to sage and have been developing some tools for arithmetic dynamics over projective and affine spaces this semester. I met william stein last week and am starting to get actually set-up to get involved in Sage. First things first is to post the (potential) bugs I've come a

[sage-devel] Re: Finite State Machines, Automata, Transducers

2012-03-25 Thread Nathann Cohen
Hellooo !!! Sage has no Module/Class for things like Finite State Machines, Automata > and Transducers. That should be changed. ;) Perhaps the "Word guys" would be interested in the adventure, by the way :-) > At the moment I think about the following: In which way could this be >

Re: [sage-devel] Re: Sage pollutes /tmp

2012-03-25 Thread Julien Puydt
Le dimanche 25 mars, leif a écrit: > > > On 25 Mrz., 17:55, Julien Puydt wrote: > > Le dimanche 25 mars, leif a écrit: > > > > > The following files and directories are definitely from doctesting > > > ('make ptestlong', not yet completed): > > > > Uh... if it isn't completed yet, those temporar

[sage-devel] Re: Sage pollutes /tmp

2012-03-25 Thread leif
On 25 Mrz., 17:55, Julien Puydt wrote: > Le dimanche 25 mars, leif a écrit: > > > The following files and directories are definitely from doctesting > > ('make ptestlong', not yet completed): > > Uh... if it isn't completed yet, those temporary files can still be > within their lifespan, can't t

Re: [sage-devel] Re: Sage pollutes /tmp

2012-03-25 Thread Julien Puydt
Le dimanche 25 mars, leif a écrit: > The following files and directories are definitely from doctesting > ('make ptestlong', not yet completed): Uh... if it isn't completed yet, those temporary files can still be within their lifespan, can't they? Snark on #sagemath -- To post to this group, se

[sage-devel] Re: Installation of sage-4.8 failed in ubuntu 10.04

2012-03-25 Thread AD
Finally, I have been able to install sage-4.8 following your instructions and right now busy learning the basics. This would have not been possible without your guidance. I wish to thank you along with the sage-developers members for your generous help. AD -- To post to this group, send an

[sage-devel] Re: Sage pollutes /tmp

2012-03-25 Thread leif
On 25 Mrz., 15:00, leif wrote: > On 25 Mrz., 12:07, Julien Puydt wrote: > > > > > > > > > > > Le dimanche 25 mars, leif a écrit: > > > > On 25 Mrz., 07:49, Dima Pasechnik wrote: > > > > On 2012-03-24, leif wrote: > > > > > And there's even more... > > > > > > tmp*/ directories presumably crea

[sage-devel] Re: Sage pollutes /tmp

2012-03-25 Thread leif
On 25 Mrz., 12:07, Julien Puydt wrote: > Le dimanche 25 mars, leif a écrit: > > > On 25 Mrz., 07:49, Dima Pasechnik wrote: > > > On 2012-03-24, leif wrote: > > > > And there's even more... > > > > > tmp*/ directories presumably created by Sphinx, Rtmp*/ > > > > directories, temporary ECL files e

Re: [sage-devel] Re: Sage pollutes /tmp

2012-03-25 Thread Julien Puydt
Le dimanche 25 mars, leif a écrit: > On 25 Mrz., 07:49, Dima Pasechnik wrote: > > On 2012-03-24, leif wrote: > > > And there's even more... > > > > > tmp*/ directories presumably created by Sphinx, Rtmp*/ > > > directories, temporary ECL files etc. etc. > > > > I saw Sage build failing (on ARM ac

[sage-devel] Re: Sage pollutes /tmp

2012-03-25 Thread leif
On 25 Mrz., 07:49, Dima Pasechnik wrote: > On 2012-03-24, leif wrote: > > And there's even more... > > > tmp*/ directories presumably created by Sphinx, Rtmp*/ directories, > > temporary ECL files etc. etc. > > I saw Sage build failing (on ARM ac100 netbook) once due to /tmp, > mounted on a separ

[sage-devel] Re: Math typesetting for inputs in the notebook

2012-03-25 Thread P Purkayastha
On Sunday, March 25, 2012 1:52:34 PM UTC+8, Dima Pasechnik wrote: > > On 2012-03-25, Jonathan wrote: > > --=_Part_1580_10983212.​1332639593822 > > Content-Type: text/plain; charset=ISO-8859-1 > > > > I agree that having a palette or menu (I think palette is better) entry > is > > a good wa