[sage-combinat-devel] Quantum analogue of Grassmanian

2011-09-20 Thread Quimey Vivas
Hello: I am working with a quantum analogue of the grassmanian algebra G(2,4). It is a noetherian algebra (of infinite dimension over the field) presented as a quotient of a free algebra on 6 generators. I was wondering if anyone has worked in a similar context and can give a starting point. I

[sage-devel] Re: feature request: store additional information about symbolic variables

2011-09-20 Thread Stan Schymanski
That's awesome, thanks a lot, William! Since this is done in the units package already, is there a way to formally save the units of e.g. T_a as units.temperature.Kelvin and then have something like: sage: T_a = 300 sage: T_a 300 Kelvin Cheers Stan On 19/09/11 17:09, William Stein wrote:

[sage-devel] Where is ? implemented?

2011-09-20 Thread Simon King
Hi! Until today, I thought that introspection via ? uses sage_getdoc. I stand corrected. Apparently it just uses _sage_getdoc_unformatted. While sage_getdoc is supposed to remove the embedding information, introspection with ? and _sage_getdoc_unformatted show the embedding information: {{{

[sage-devel] Re: Where is ? implemented?

2011-09-20 Thread Simon King
Found it, found it!! It seems that ? is implemented in sage.misc.sagedoc.my_getdoc. Looking at the code, it *is* intended to use sage.misc.sageinspect.sage_getdoc. However, if the object has a _sage_doc_ method, then its output will be printed without any formatting applied. I think that's a

[sage-devel] Re: Finite-dimensional algebras in Sage?

2011-09-20 Thread Dima Pasechnik
actually, I won't mind having the functionality directly in Sage, at all :) To be uselful fo rme, it certainly will need to support algebras of dimension more than, say, 10,000, which is not so uncommon in my applications (one often get these as centralisers of permutation groups, say). This

[sage-devel] Re: Where is ? implemented?

2011-09-20 Thread Simon King
Hi! On 20 Sep., 11:07, Simon King simon.k...@uni-jena.de wrote: Opening a ticket now... It is #11817, and ready for review. It also fixes a fact in sage.misc.sagedoc.format, that ironically is responsible for the fact that sage.misc.sagedoc.format? did not show the docstring. Cheers, Simon

Re: [sage-devel] Re: Finite-dimensional algebras in Sage?

2011-09-20 Thread Jeroen Demeyer
On 2011-09-20 12:27, Dima Pasechnik wrote: This mandates the structure for multiplication coefficients being clever. You mean they should be sparse? -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to

[sage-devel] Re: Wiki page for spkg tracking.

2011-09-20 Thread Jean-Pierre Flori
On 19 sep, 22:56, leif not.rea...@online.de wrote: On 19 Sep., 12:42, Jean-Pierre Flori jpfl...@gmail.com wrote: Dear all, Would anyone mind if I update parts of the wiki page for spkg tracking ? No, of course not. I occasionally update (parts of) it, but not on a regular basis. My

Re: [sage-devel] Finite-dimensional algebras in Sage?

2011-09-20 Thread Nicolas M. Thiery
On Mon, Sep 19, 2011 at 12:23:06PM +0200, Jeroen Demeyer wrote: I only found sage/categories/finite_dimensional_algebras_with_basis.py which is just a category with essentially no code. I noticed you found #1 in the mean time. Help on finalizing this patch is most welcome :-) Have

Re: [sage-devel] Re: Finite-dimensional algebras in Sage?

2011-09-20 Thread Dima Pasechnik
In my case, sometimes keeping multiplication coefficients, even in a sparse form, is less efficient than recomputing them over and over again, from a set of sparse matrix generators. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send

[sage-devel] Re: feature request: store additional information about symbolic variables

2011-09-20 Thread Nils Bruin
On Sep 20, 12:36 am, Stan Schymanski schym...@gmail.com wrote: That's awesome, thanks a lot, William! Since this is done in the units package already, is there a way to formally save the units of e.g. T_a as units.temperature.Kelvin and then have something like: sage: T_a = 300 sage: T_a

[sage-devel] Re: Finding the exact camera position in Jmol

2011-09-20 Thread Sébastien Labbé
Hi Jonathan, In theory this could be added to the javascript functions being included with the update to the Jmol interface which is coming with the switch to the new flask notebook, but I'm not sure this is the best solution. Apparently, people are also interested by the converse [1].

[sage-devel] Re: feature request: store additional information about symbolic variables

2011-09-20 Thread Nils Bruin
On Sep 20, 12:36 am, Stan Schymanski schym...@gmail.com wrote: Since this is done in the units package already, is there a way to formally save the units of e.g. T_a as units.temperature.Kelvin and then have something like: sage: T_a = 300 sage: T_a 300 Kelvin You can of course write

[sage-devel] Re: @parallel doesn't clean up temp directories?

2011-09-20 Thread Volker Braun
As it turns out, I put my code in a script.sage file and executed sage script.sage on the nodes. If you run a script this way, the sage-cleaner is not started and nobody cleans up the temp directories after each fork. This issue is now http://trac.sagemath.org/sage_trac/ticket/11818 -- To

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

2011-09-20 Thread John H Palmieri
If I create a simple Sage script and call it script.sage, then running sage script.sage works fine. But if I call it new.sage, it doesn't. Why? Script: def f(i): return i f(10) Error: Traceback (most recent call last): File new.py, line 2, in module from

[sage-devel] Generator Expressions Weirdness

2011-09-20 Thread jireva
Hello everyone, The following creates three variables ``a``, ``b``, and ``c``:: sage: var('a, b, c') (a, b, c) I would expect this to do the same thing:: sage: var(('a', 'b', 'c')) (('a', 'b', 'c')) It doesn't, but that's not too big a problem... This should

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

2011-09-20 Thread john_perry_usm
This took me by surprise: sage: tord = TermOrder(matrix([3,2,4,1,1,0,1,0,0])) sage: R.x,y,z = PolynomialRing(QQ,'x',3,order=tord) sage: (x^2).degree() 6 sage: (x^2).degree(x) 2 I didn't find the docstring helpful on this. Digging around, I learned that this is how Singular treats the degree

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

2011-09-20 Thread Volker Braun
Is this fixed by http://trac.sagemath.org/sage_trac/ticket/11819 ? -- 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...@googlegroups.com For more options, visit this group at

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

2011-09-20 Thread John H Palmieri
On Tuesday, September 20, 2011 11:07:10 AM UTC-7, John H Palmieri wrote: If I create a simple Sage script and call it script.sage, then running sage script.sage works fine. But if I call it new.sage, it doesn't. Why? [snip] from twisted.python import util, context, reflect

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

2011-09-20 Thread Volker Braun
Sorry, I posted to the wrong thread! I meant the can't name a script new.sage thread... -- 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...@googlegroups.com For more options, visit this group at

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

2011-09-20 Thread Volker Braun
+1 On a related note, I have more than once opened file.py for editing when I really wanted to open file.sage -- 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...@googlegroups.com For more options, visit

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

2011-09-20 Thread John H Palmieri
By the way, Volker, this is not fixed by http://trac.sagemath.org/sage_trac/ticket/11819, since 'new' is imported by twisted, not just by the Sage library. -- John -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to

Re: [sage-devel] Finite-dimensional algebras in Sage?

2011-09-20 Thread Felix Salfelder
On Tue, Sep 20, 2011 at 12:40:30PM +0200, Nicolas M. Thiery wrote: Here is a suggestion of implementation plan: - Low level kernel: implement efficient mutable subspaces. That is we want the usual subspaces: [..] - Implement generically (in ModulesWithBasis) a method: [..] - Use

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

2011-09-20 Thread Felix Salfelder
On Tue, Sep 20, 2011 at 12:55:32PM -0700, John H Palmieri wrote: Should sage-preparse name the preparsed file something safer, in order to prevent name clashes like this? For example, turn FILE.sage into FILE_preparsed.py? Hi. while You are at it: preparsed_FILE.py or even simply .FILE.py

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

2011-09-20 Thread Simon King
Hi John! On 20 Sep., 21:21, john_perry_usm john.pe...@usm.edu wrote: This took me by surprise: sage: tord = TermOrder(matrix([3,2,4,1,1,0,1,0,0])) sage: R.x,y,z = PolynomialRing(QQ,'x',3,order=tord) sage: (x^2).degree() 6 It may be surprising that the first row of the order matrix is

Re: [sage-devel] Re: @parallel doesn't clean up temp directories?

2011-09-20 Thread William Stein
On Tue, Sep 20, 2011 at 9:52 AM, Volker Braun vbraun.n...@gmail.com wrote: As it turns out, I put my code in a script.sage file and executed sage script.sage on the nodes. If you run a script this way, the sage-cleaner is not started and nobody cleans up the temp directories after each fork.

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

2011-09-20 Thread john_perry_usm
Hi Simon! On Sep 20, 4:18 pm, Simon King simon.k...@uni-jena.de wrote: However, note that since sage-4.7.2.alpha1 Sage finally has proper weighted degree term orders - that was trac ticket #11316. So, it will be in the next release. Yes! I'm aware of ( delighted with) that. sage:

[sage-devel] Re: Generator Expressions Weirdness

2011-09-20 Thread Nils Bruin
On Sep 20, 10:20 am, jireva jose.i.ro...@gmail.com wrote: Hello everyone, The following creates three variables ``a``, ``b``, and ``c``::         sage: var('a, b, c')         (a, b, c) I would expect this to do the same thing::         sage: var(('a', 'b', 'c'))         (('a', 'b',

[sage-devel] python compiled to javascript

2011-09-20 Thread Jason Grout
I just saw this on slashdot: http://repl.it/ It uses Emscripten, an LLVM-to-Javascript compiler to compile CPython to javascript, so the python code runs entirely in the web browser. As another example of this, see http://syntensity.com/static/python.html. Emscripten is an

[sage-devel] Re: python compiled to javascript

2011-09-20 Thread Volker Braun
Thats impressive, but to compile Sage into js we need a bit more work ;-) What really caught my eye was the editor component, here is the demo: http://ace.ajax.org/build/kitchen-sink.html and make sure to switch to Python. Can we have that as the editor in the worksheet? That might even

[sage-devel] Re: python compiled to javascript

2011-09-20 Thread Jason Grout
On 9/20/11 6:37 PM, Volker Braun wrote: Thats impressive, but to compile Sage into js we need a bit more work ;-) I was thinking more of having Sage transfer pure python functions to the browser to execute, or writing browser logic in python, which is then executed in the browser, sort of

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

2011-09-20 Thread Tom Boothby
+1 to .file.py, since it'll hide the file from directory listings. On Tue, Sep 20, 2011 at 1:23 PM, Felix Salfelder fe...@salfelder.org wrote: On Tue, Sep 20, 2011 at 12:55:32PM -0700, John H Palmieri wrote: Should sage-preparse name the preparsed file something safer, in order to prevent name

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

2011-09-20 Thread John H Palmieri
On Tuesday, September 20, 2011 5:46:03 PM UTC-7, Tom wrote: +1 to .file.py, since it'll hide the file from directory listings. I'm not sure I want to hide the file. I don't actually use xxx.sage files much, but when I do, I usually just delete the py file right away, and if it's hidden,

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

2011-09-20 Thread Dan Drake
On Tue, 20 Sep 2011 at 06:47PM -0700, John H Palmieri wrote: On Tuesday, September 20, 2011 5:46:03 PM UTC-7, Tom wrote: +1 to .file.py, since it'll hide the file from directory listings. I'm not sure I want to hide the file. I don't actually use xxx.sage files much, but when I do, I

[sage-devel] Re: Generator Expressions Weirdness

2011-09-20 Thread jireva
On Sep 20, 6:08 pm, Nils Bruin nbr...@sfu.ca wrote: It's actually just as big a problem as the third example you give: Oh, haha, yes it is. http://trac.sagemath.org/sage_trac/ticket/7496 should partly deal with the nasty bits of this problem. Great! The assumption that var((a,b,c)) or var