[sage-devel] Re: degree of a monomial with a matrix ordering

2011-09-22 Thread Simon King
PS: Singular offers to use an "extra weight vector" (see http://www.singular.uni-kl.de/Manual/latest/sing_748.htm#SEC800). Sadly, if one uses it, then one automatically gets a degree order. So, it would not solve our problem. Cheers, Simon -- To post to this group, send an email to sage-devel@g

[sage-devel] Re: degree of a monomial with a matrix ordering

2011-09-22 Thread Simon King
Hi John, On 22 Sep., 23:46, john_perry_usm wrote: > Are you saying the first row of a matrix term ordering determines the > degree of the generators? I said two things. One statement was: The matrix term ordering should not interfere with the degrees of the generators. It must be possible to de

Re: [sage-devel] Fractal Newton basins = Need Cython help!

2011-09-22 Thread D. S. McNeil
> However, it is super slow, because my Cython is very bad.  The image > at #11837 took a few minutes to produce on my reasonably new laptop. > That's not even close to good enough. I think replacing 2/3 with 2./3 in if abs(varia-root)<2/3: will help a little.. :^) By itself, th

[sage-devel] Fractal Newton basins = Need Cython help!

2011-09-22 Thread kcrisman
I've opened http://trac.sagemath.org/sage_trac/ticket/11837 for adding Newton basin fractals to Sage. It turns out that even I could modify complex_plot to create these, after a few false steps. Sage-edu fans will perhaps be interested in this - if you've ever played with something like http://a

[sage-devel] Re: applications for dense linear algebra over GF(2^e)

2011-09-22 Thread Dima Pasechnik
Hi Martin, by the way, I'm also giving a talk at this meeting, although not Sage-related. Anyhow, hopefully I'll have time to drop by your talk... Dmitrii -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr

[sage-devel] Re: degree of a monomial with a matrix ordering

2011-09-22 Thread john_perry_usm
Simon, I have seen graded rings before, for example when defining homogeneous rings one has standard and non-standard gradings. But the grading wasn't determined by a term ordering in those cases, and I have seen a distinction between the two: a recent paper on Computing Inhomogeneous Groebner Bas

Re: [sage-devel] Can I input n variables in python?

2011-09-22 Thread Mike Hansen
On Thu, Sep 22, 2011 at 1:37 PM, Anna Haensch wrote: > Is there any way in sage, or rather python, to define a function which > takes as its input n variables, rather than assigning a fixed > number? > > I've just written a piece of code for the Quadratic Forms module, > which takes as input a Qua

[sage-devel] Can I input n variables in python?

2011-09-22 Thread Anna Haensch
Is there any way in sage, or rather python, to define a function which takes as its input n variables, rather than assigning a fixed number? I've just written a piece of code for the Quadratic Forms module, which takes as input a Quadratic Lattice, Q, and three vectors, so (Q,v_1,v_2,v_3), and it

[sage-devel] Re: nondescript tracebacks with load and attach of .sage files

2011-09-22 Thread Marco Streng
On 18 sep, 17:49, Simon King wrote: > Sorry, I thought your suggestion was that there should be a > cleartraceback(hence, a temporary file) when youattachsomething, and > when you load something then it should be as efficient as possible, > hence, accepting less descriptive tracebacks. Done. #

[sage-devel] Re: degree of a monomial with a matrix ordering

2011-09-22 Thread Simon King
Hi John, On 21 Sep., 20:50, john_perry_usm wrote: > What about this? > > sage: tord = TermOrder(matrix([3,2,4,1,1,0,1,0,0])) > sage: R. = PolynomialRing(QQ,'x',3,order=tord) > sage: (x^2).degree(x) > 2 > sage: (x^2).degrees() > (2, 0, 0) > sage: (x^2).degree() > 6 > > Is all of this desirable beh

Re: [sage-devel] Re: can't name a script "new.sage"?

2011-09-22 Thread Felix Salfelder
On Thu, Sep 22, 2011 at 10:50:26AM +0200, Ivan Andrus wrote: > [..] > editors. Unfortunately, I don't know of a way to make bash ignore > certain file extensions when completing. > [..] good idea. after typing $ complete -f -X '*.preparsed.py' vim $ touch foo.sage foo.preparsed.py tab completio

Re: [sage-devel] Re: can't name a script "new.sage"?

2011-09-22 Thread Volker Braun
On Wednesday, September 21, 2011 7:53:16 PM UTC+1, John H Palmieri wrote: > > Another idea would be to not cache it at all: don't save any file, but save > the preparsed file as a string and feed that in to sage-python. ("sage > -preparse" would still wrute to a file.) > I think that would be t

Re: [sage-devel] Re: can't name a script "new.sage"?

2011-09-22 Thread Ivan Andrus
On Sep 21, 2011, at 8:53 PM, John H Palmieri wrote: > On Wednesday, September 21, 2011 11:26:39 AM UTC-7, Felix Salfelder wrote: > On Wed, Sep 21, 2011 at 09:11:57AM -0700, Tom Boothby wrote: > > I capitulate on the hidden file idea, in favor of putting 'em in > > ~/.sage/ though one might note th