[sage-support] Re: plotting Weierstrass Elliptic function
thanks, that did it for me... --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage-3.0 run-time errors in Arch linux
Hi Michael, I doubt compilation finished successfully in your case. You need to set SAGE_FORTAN to the system fortran since the g95 we ship is broken on Arch. We didn't automate that so far and we have been discussing of solving that problem by defaulting to gfortran if it is available. Setting the SAGE_FORTAN flag to gfortran did not solve the problem. I am still getting the same errors. Since the pre-compiled version is working on the same machine, I think that the problem should lie somewhere in the compilation process. It would be great if you could post a link to install.log so I could have a look to see what is wrong. You can download it from here: http://www.4shared.com/file/45206703/736d1ac0/install.html Cheers, Osman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] saving and loading objects in the notebook environment
I have a basic question about loading object in the notebook environment. Currently, I have to typed the whole path in order to load a saved object. For example, I saved the matrix A as C by save(A,'C') But, say, I want to load it as B, I have to type B = load('/home/sage/try/worksheets/admin/0/cells/5/C') (I started the notebook in the directory which I call try) Is there a way to do it without specifying the whole path?? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage-3.0 run-time errors in Arch linux
On Apr 24, 10:30 am, ugus [EMAIL PROTECTED] wrote: Hi Michael, Hi Osman, I doubt compilation finished successfully in your case. You need to set SAGE_FORTAN to the system fortran since the g95 we ship is broken on Arch. We didn't automate that so far and we have been discussing of solving that problem by defaulting to gfortran if it is available. Setting the SAGE_FORTAN flag to gfortran did not solve the problem. I am still getting the same errors. Since the pre-compiled version is working on the same machine, I think that the problem should lie somewhere in the compilation process. You are correct. Looking at the look that part seems to have worked perfectly. It would be great if you could post a link to install.log so I could have a look to see what is wrong. You can download it from here: http://www.4shared.com/file/45206703/736d1ac0/install.html Compressing it would be nice in the future :=) Cheers, Now, since Fortran as a culprit is out I poked around and the following seems to be the likely cause of your trouble: gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototypes -DHAVE_NDBM_H -I. -I/var/abs/local /sage/src/sage-3.0/spkg/build/python-2.5.2/src/./Include -I/var/abs/ local/sage/src/sage-3.0/local/include -I. -IInclude -I./ Include -I/usr/local/include -I/var/abs/local/sage/src/sage-3.0/spkg/ build/python-2.5.2/src/Include -I/var/abs/local/sage/sr c/sage-3.0/spkg/build/python-2.5.2/src -c /var/abs/local/sage/src/ sage-3.0/spkg/build/python-2.5.2/src/Modules/dbmmodule.c - o build/temp.linux-i686-2.5/var/abs/local/sage/src/sage-3.0/spkg/build/ python-2.5.2/src/Modules/dbmmodule.o gcc -pthread -shared -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 - Wall -Wstrict-prototypes build/temp.linux-i686-2.5/var/ab s/local/sage/src/sage-3.0/spkg/build/python-2.5.2/src/Modules/ dbmmodule.o -L/var/abs/local/sage/src/sage-3.0/local/lib -L/us r/local/lib -o build/lib.linux-i686-2.5/dbm.so *** WARNING: renaming dbm since importing it failed: build/lib.linux- i686-2.5/dbm.so: undefined symbol: dbm_firstkey building 'gdbm' extension Since I am relatively clueless about Arch can you poke around and tell me what version of gdbm you have installed? Are there things like Gentoo's USEFLAGS that could have an effect on this? Are you current? The image we build on is about two weeks old. Osman Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: saving and loading objects in the notebook environment
On Thu, Apr 24, 2008 at 6:51 AM, pong [EMAIL PROTECTED] wrote: I have a basic question about loading object in the notebook environment. Currently, I have to typed the whole path in order to load a saved object. For example, I saved the matrix A as C by save(A,'C') But, say, I want to load it as B, I have to type B = load('/home/sage/try/worksheets/admin/0/cells/5/C') (I started the notebook in the directory which I call try) Is there a way to do it without specifying the whole path?? Do this: sage: a = matrix(QQ,3,range(9)) sage: a.save(DATA + 'a') sage: load(DATA + 'a') [0 1 2] [3 4 5] [6 7 8] The DATA variables is predefined in any notebook session for this purpose. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Simple continued fractions in Pari
I needed to derive some continued fractions and a quick search of the index suggests that the Pari-GP function 'contfrac' might be what I needed. A simple test in the notebook: gp('contfrac(sqrt(6))') produced [2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2] which is not exactly what I expected. I'd expect either: [2;2,4] or [2,2,4,2,4,2,4,2,4,] the latter implying that the expansion continues. Does the result given mean that Pari is using a limited precision evaluation of sqrt(6)? I'd prefer the first of my expected results, giving a simple infinite continued fraction. Bill --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Simple continued fractions in Pari
On Thu, Apr 24, 2008 at 7:35 AM, bill.p [EMAIL PROTECTED] wrote: I needed to derive some continued fractions and a quick search of the index suggests that the Pari-GP function 'contfrac' might be what I needed. A simple test in the notebook: gp('contfrac(sqrt(6))') produced [2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2] which is not exactly what I expected. I'd expect either: [2;2,4] or [2,2,4,2,4,2,4,2,4,] the latter implying that the expansion continues. Does the result given mean that Pari is using a limited precision evaluation of sqrt(6)? Yes. I'd prefer the first of my expected results, giving a simple infinite continued fraction. There is no such functionality in pari or as far as I know in Sage. By the way, Sage also has a continued_fraction command. sage: a = continued_fraction(sqrt(6),200); a [2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4] [2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 2, 1] William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage-3.0 run-time errors in Arch linux
Hi, Hi Osman, Now, since Fortran as a culprit is out I poked around and the following seems to be the likely cause of your trouble: gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototypes -DHAVE_NDBM_H -I. -I/var/abs/local /sage/src/sage-3.0/spkg/build/python-2.5.2/src/./Include -I/var/abs/ local/sage/src/sage-3.0/local/include -I. -IInclude -I./ Include -I/usr/local/include -I/var/abs/local/sage/src/sage-3.0/spkg/ build/python-2.5.2/src/Include -I/var/abs/local/sage/sr c/sage-3.0/spkg/build/python-2.5.2/src -c /var/abs/local/sage/src/ sage-3.0/spkg/build/python-2.5.2/src/Modules/dbmmodule.c - o build/temp.linux-i686-2.5/var/abs/local/sage/src/sage-3.0/spkg/build/ python-2.5.2/src/Modules/dbmmodule.o gcc -pthread -shared -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 - Wall -Wstrict-prototypes build/temp.linux-i686-2.5/var/ab s/local/sage/src/sage-3.0/spkg/build/python-2.5.2/src/Modules/ dbmmodule.o -L/var/abs/local/sage/src/sage-3.0/local/lib -L/us r/local/lib -o build/lib.linux-i686-2.5/dbm.so *** WARNING: renaming dbm since importing it failed: build/lib.linux- i686-2.5/dbm.so: undefined symbol: dbm_firstkey building 'gdbm' extension Since I am relatively clueless about Arch can you poke around and tell me what version of gdbm you have installed? gdbm-1.8.3-5 and this is the version used in Arch linux since 19.11.2007. Are there things like Gentoo's USEFLAGS that could have an effect on this? Yes. For compiling from source, one can enable or disable flags. Are you current? The image we build on is about two weeks old. Yes, my arch is current. Can it be problem of installing python in sage as discussed in this link ?: http://mail.python.org/pipermail/python-list/2007-January/422017.html Cheers, Osman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage-3.0 run-time errors in Arch linux
Hi, - Hide quoted text - Hi Osman, Now, since Fortran as a culprit is out I poked around and the following seems to be the likely cause of your trouble: gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototypes -DHAVE_NDBM_H -I. -I/var/abs/local /sage/src/sage-3.0/spkg/build/python-2.5.2/src/./Include -I/var/abs/ local/sage/src/sage-3.0/local/include -I. -IInclude -I./ Include -I/usr/local/include -I/var/abs/local/sage/src/sage-3.0/spkg/ build/python-2.5.2/src/Include -I/var/abs/local/sage/sr c/sage-3.0/spkg/build/python-2.5.2/src -c /var/abs/local/sage/src/ sage-3.0/spkg/build/python-2.5.2/src/Modules/dbmmodule.c - o build/temp.linux-i686-2.5/var/abs/local/sage/src/sage-3.0/spkg/build/ python-2.5.2/src/Modules/dbmmodule.o gcc -pthread -shared -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 - Wall -Wstrict-prototypes build/temp.linux-i686-2.5/var/ab s/local/sage/src/sage-3.0/spkg/build/python-2.5.2/src/Modules/ dbmmodule.o -L/var/abs/local/sage/src/sage-3.0/local/lib -L/us r/local/lib -o build/lib.linux-i686-2.5/dbm.so *** WARNING: renaming dbm since importing it failed: build/lib.linux- i686-2.5/dbm.so: undefined symbol: dbm_firstkey building 'gdbm' extension Since I am relatively clueless about Arch can you poke around and tell me what version of gdbm you have installed? gdbm-1.8.3-5 and this is the version used in Arch linux since 19.11.2007. Are there things like Gentoo's USEFLAGS that could have an effect on this? Yes. For compiling from source, one can enable or disable flags. Are you current? The image we build on is about two weeks old. Yes, my arch is current. Can it be problem of installing python in sage as discussed in this link ?: http://bugs.gentoo.org/show_bug.cgi?id=165268 Cheers, Osman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Simple continued fractions in Pari
On Thu, Apr 24, 2008 at 9:47 AM, John Cremona [EMAIL PROTECTED] wrote: 2008/4/24 William Stein [EMAIL PROTECTED]: On Thu, Apr 24, 2008 at 7:35 AM, bill.p [EMAIL PROTECTED] wrote: I needed to derive some continued fractions and a quick search of the index suggests that the Pari-GP function 'contfrac' might be what I needed. A simple test in the notebook: gp('contfrac(sqrt(6))') produced [2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2] which is not exactly what I expected. I'd expect either: [2;2,4] or [2,2,4,2,4,2,4,2,4,] the latter implying that the expansion continues. Does the result given mean that Pari is using a limited precision evaluation of sqrt(6)? Yes. I'd prefer the first of my expected results, giving a simple infinite continued fraction. There is no such functionality in pari or as far as I know in Sage. By the way, Sage also has a continued_fraction command. sage: a = continued_fraction(sqrt(6),200); a [2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4] [2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 2, 1] In fact there is a whole continued fraction field implemented in sage.rings.contfrac.py, with a lot of clever looking code in it, but it does not (as far as I could see) implement the construction which bill.p wanted from a quadratic surd. That file seems to have no Author listed, so I don't know who wrote it! I wrote it. It indeed doesn't have any notion of infinite continued fraction. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Error computing matrix kernel
Take a look at this here: sage: A = matrix(QQ, 3, [0,1,2,1,1,3,-1,0,-1]) sage: A [ 0 1 2] [ 1 1 3] [-1 0 -1] sage: A.kernel() Vector space of degree 3 and dimension 1 over Rational Field Basis matrix: [ 1 -1 -1] sage: Perhaps I'm just completely dumb but this vector is not contained in the kernel of A. My SAGE version is: sage: version() 'SAGE Version 3.0, Release Date: 2008-04-21' --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error computing matrix kernel
On Thu, Apr 24, 2008 at 9:48 AM, UAT [EMAIL PROTECTED] wrote: Take a look at this here: sage: A = matrix(QQ, 3, [0,1,2,1,1,3,-1,0,-1]) sage: A [ 0 1 2] [ 1 1 3] [-1 0 -1] sage: A.kernel() Vector space of degree 3 and dimension 1 over Rational Field Basis matrix: [ 1 -1 -1] sage: Perhaps I'm just completely dumb but this vector is not contained in the kernel of A. My SAGE version is: sage: version() 'SAGE Version 3.0, Release Date: 2008-04-21' Sage computes the *left* kernel be default, just like Magma. If you want to compute the right_kernel use that command. See below: sage: A = matrix(QQ, 3, [0,1,2,1,1,3,-1,0,-1]) sage: V = A.kernel() sage: V Vector space of degree 3 and dimension 1 over Rational Field Basis matrix: [ 1 -1 -1] sage: V.0 * A (0, 0, 0) sage: W = A.right_kernel() sage: W Vector space of degree 3 and dimension 1 over Rational Field Basis matrix: [ 1 2 -1] sage: A*W.0 (0, 0, 0) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error computing matrix kernel
Wow, I didn't know this! I already wondered why SAGE should make such a stupid mistake. Thanks for the fast answer! On Apr 24, 6:54 pm, William Stein [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 9:48 AM, UAT [EMAIL PROTECTED] wrote: Take a look at this here: sage: A = matrix(QQ, 3, [0,1,2,1,1,3,-1,0,-1]) sage: A [ 0 1 2] [ 1 1 3] [-1 0 -1] sage: A.kernel() Vector space of degree 3 and dimension 1 over Rational Field Basis matrix: [ 1 -1 -1] sage: Perhaps I'm just completely dumb but this vector is not contained in the kernel of A. My SAGE version is: sage: version() 'SAGE Version 3.0, Release Date: 2008-04-21' Sage computes the *left* kernel be default, just like Magma. If you want to compute the right_kernel use that command. See below: sage: A = matrix(QQ, 3, [0,1,2,1,1,3,-1,0,-1]) sage: V = A.kernel() sage: V Vector space of degree 3 and dimension 1 over Rational Field Basis matrix: [ 1 -1 -1] sage: V.0 * A (0, 0, 0) sage: W = A.right_kernel() sage: W Vector space of degree 3 and dimension 1 over Rational Field Basis matrix: [ 1 2 -1] sage: A*W.0 (0, 0, 0) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error computing matrix kernel
On Thu, Apr 24, 2008 at 10:00 AM, UAT [EMAIL PROTECTED] wrote: Wow, I didn't know this! I already wondered why SAGE should make such a stupid mistake. Thanks for the fast answer! Because people get confused by this, we will likely remove the kernel command and have only left_kernel() and right_kernel(). William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: No covering morphism available
I think this is because the underlying computer algebra system Sage uses for univariate polynomial rings and multivariate rings are completely different, so support different operations. Someone else might be able to suggest a work-round. John 2008/4/24 UAT [EMAIL PROTECTED]: For some reason, there is no covering morphism available for the quotient ring QQ[X]/(X^2). But when I take the polynomial ring in two variables, everything is fine: sage: R.X = PolynomialRing(QQ) sage: S = R.quo(X^2) sage: S Univariate Quotient Polynomial Ring in Xbar over Rational Field with modulus X^2 sage: S.co (I pressed TAB here) S.coerce_map_from S.coerce_map_from_impl S.construction sage: S.co And now: sage: R.X,Y = PolynomialRing(QQ) sage: S = R.quo(X^2) sage: S Quotient of Multivariate Polynomial Ring in X, Y over Rational Field by the ideal (X^2) sage: p = S.cover() sage: p(X)*p(X) 0 sage: So, in two variables, everything is fine! My SAGE version is: sage: version() 'SAGE Version 3.0, Release Date: 2008-04-21' --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: No covering morphism available
On Thu, Apr 24, 2008 at 10:19 AM, John Cremona [EMAIL PROTECTED] wrote: I think this is because the underlying computer algebra system Sage uses for univariate polynomial rings and multivariate rings are completely different, so support different operations. Someone else might be able to suggest a work-round. I think the best workaround is to implement it and post a patch. :-) 2008/4/24 UAT [EMAIL PROTECTED]: For some reason, there is no covering morphism available for the quotient ring QQ[X]/(X^2). But when I take the polynomial ring in two variables, everything is fine: sage: R.X = PolynomialRing(QQ) sage: S = R.quo(X^2) sage: S Univariate Quotient Polynomial Ring in Xbar over Rational Field with modulus X^2 sage: S.co (I pressed TAB here) S.coerce_map_from S.coerce_map_from_impl S.construction sage: S.co And now: sage: R.X,Y = PolynomialRing(QQ) sage: S = R.quo(X^2) sage: S Quotient of Multivariate Polynomial Ring in X, Y over Rational Field by the ideal (X^2) sage: p = S.cover() sage: p(X)*p(X) 0 sage: So, in two variables, everything is fine! My SAGE version is: sage: version() 'SAGE Version 3.0, Release Date: 2008-04-21' -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error computing matrix kernel
On Thu, Apr 24, 2008 at 1:07 PM, William Stein [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 10:00 AM, UAT [EMAIL PROTECTED] wrote: Wow, I didn't know this! I already wondered why SAGE should make such a stupid mistake. Thanks for the fast answer! Because people get confused by this, we will likely remove the kernel command and have only left_kernel() and right_kernel(). +1 (and maybe add kernel_left and kernel_right for those of us addicted to tab completion) William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error computing matrix kernel
That's a good idea, in particular for SAGE-beginners like me :) On Apr 24, 7:07 pm, William Stein [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 10:00 AM, UAT [EMAIL PROTECTED] wrote: Wow, I didn't know this! I already wondered why SAGE should make such a stupid mistake. Thanks for the fast answer! Because people get confused by this, we will likely remove the kernel command and have only left_kernel() and right_kernel(). William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error computing matrix kernel
David Joyner wrote: On Thu, Apr 24, 2008 at 1:07 PM, William Stein [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 10:00 AM, UAT [EMAIL PROTECTED] wrote: Wow, I didn't know this! I already wondered why SAGE should make such a stupid mistake. Thanks for the fast answer! Because people get confused by this, we will likely remove the kernel command and have only left_kernel() and right_kernel(). +1 (and maybe add kernel_left and kernel_right for those of us addicted to tab completion) Or maybe kernel(action='left') and kernel(action='right') for those of us who try not to be overwhelmed with the tab completion list. I started work on this, but the semester got busy. I'd like to finish it before a linear algebra program in July, if noone else beats me to it. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error computing matrix kernel
On Thu, Apr 24, 2008 at 10:48 AM, Jason Grout [EMAIL PROTECTED] wrote: David Joyner wrote: On Thu, Apr 24, 2008 at 1:07 PM, William Stein [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 10:00 AM, UAT [EMAIL PROTECTED] wrote: Wow, I didn't know this! I already wondered why SAGE should make such a stupid mistake. Thanks for the fast answer! Because people get confused by this, we will likely remove the kernel command and have only left_kernel() and right_kernel(). +1 (and maybe add kernel_left and kernel_right for those of us addicted to tab completion) Or maybe kernel(action='left') and kernel(action='right') for those of us who try not to be overwhelmed with the tab completion list. I started work on this, but the semester got busy. I'd like to finish it before a linear algebra program in July, if noone else beats me to it. NO. Like Nick Alexander, I do not like the above suggestion at all. I think that options to method functions like this, when possible, shouldn't completely change the behavior of the function so drastically. Usually, when possible they should just change the underlying algorithm or fine details of what is being computed. Thus I greatly prefer kernel_left and kernel_right to what you suggest. For the matrix(...) constructor that you rewrote I really like what you did. But a general matrix constructor is a different sort of thing. William -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Error computing matrix kernel
William Stein wrote: On Thu, Apr 24, 2008 at 10:48 AM, Jason Grout [EMAIL PROTECTED] wrote: David Joyner wrote: On Thu, Apr 24, 2008 at 1:07 PM, William Stein [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 10:00 AM, UAT [EMAIL PROTECTED] wrote: Wow, I didn't know this! I already wondered why SAGE should make such a stupid mistake. Thanks for the fast answer! Because people get confused by this, we will likely remove the kernel command and have only left_kernel() and right_kernel(). +1 (and maybe add kernel_left and kernel_right for those of us addicted to tab completion) Or maybe kernel(action='left') and kernel(action='right') for those of us who try not to be overwhelmed with the tab completion list. I started work on this, but the semester got busy. I'd like to finish it before a linear algebra program in July, if noone else beats me to it. NO. Like Nick Alexander, I do not like the above suggestion at all. I think that options to method functions like this, when possible, shouldn't completely change the behavior of the function so drastically. Usually, when possible they should just change the underlying algorithm or fine details of what is being computed. Thus I greatly prefer kernel_left and kernel_right to what you suggest. For the matrix(...) constructor that you rewrote I really like what you did. But a general matrix constructor is a different sort of thing. Sure. I'm not particularly tied to anything in this case. Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage-3.0 run-time errors in Arch linux
On Apr 24, 6:48 pm, ugus [EMAIL PROTECTED] wrote: Hi, - Hide quoted text - Hi Osman, Since I am relatively clueless about Arch can you poke around and tell me what version of gdbm you have installed? gdbm-1.8.3-5 and this is the version used in Arch linux since 19.11.2007. Ok. Are there things like Gentoo's USEFLAGS that could have an effect on this? Yes. For compiling from source, one can enable or disable flags. So is Arch a direct descendent of Gentoo, i.e does it us a descendent of its ebuild system? Are you current? The image we build on is about two weeks old. Yes, my arch is current. Can it be problem of installing python in sage as discussed in this link ?:http://bugs.gentoo.org/show_bug.cgi?id=165268 Sound pretty much like it could be. Can you take vanilla python 2.5.2 on your box, build from source and then check if the gdbm extension compiles [I think it won't]. Can you then build gdbm from source and use that version to build python? If that works it is likely to be a use flag problem somehow in arch and your specific setup. Cheers, Osman Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage-3.0 run-time errors in Arch linux
Hi, So is Arch a direct descendent of Gentoo, i.e does it us a descendent of its ebuild system? nope, Arch build system is more lightweight, it's PKGBUILD is like ebuild just in BASH not Python, it's also made for binrary distribution in mind with possible easy rebuild by user, while on Gentoo as far as I know you *have* to build almost everything... I think there are so much similarities because both systems created their managers with FreeBSD ports in mind... at least this is approximated explanation :) cheers, Andrzej. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] loading programs created by Cython into notebook
I have followed the SAGE program guide and create the function sumsquares (one of the examples there). It works for the same session of the notebook. My question is how can I use this faster version of sumsquares in the future? At the moment, I just want when I type, e.g. sumsquares(1000), in a notebook cell, SAGE will run the complied code that was created. I looked around from the reference manual and find something like sage.server.support.cython_import... but it asks for a .pyx file. I couldn't locate where it is. All I see are a .c and a .pyx.html files. Please help Thanks in advance --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: saving and loading objects in the notebook environment
Thanks William. This is what I needed. On Apr 24, 9:57 pm, William Stein [EMAIL PROTECTED] wrote: On Thu, Apr 24, 2008 at 6:51 AM, pong [EMAIL PROTECTED] wrote: I have a basic question about loading object in the notebook environment. Currently, I have to typed the whole path in order to load a saved object. For example, I saved the matrix A as C by save(A,'C') But, say, I want to load it as B, I have to type B = load('/home/sage/try/worksheets/admin/0/cells/5/C') (I started the notebook in the directory which I call try) Is there a way to do it without specifying the whole path?? Do this: sage: a = matrix(QQ,3,range(9)) sage: a.save(DATA + 'a') sage: load(DATA + 'a') [0 1 2] [3 4 5] [6 7 8] The DATA variables is predefined in any notebook session for this purpose. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---