[sage-support] Re: Symbolic determinant
On Aug 13, 6:45 am, vasu wrote: > Hi > Any clues what is happening here? I am trying out calculations as Yann > mentioned. > > M=matrix(SR,4,[1,1,1,1,x^a,x^b,x^c,1,y^a,y^b,y^c,1,z^a,z^b,z^c,1]) > M.det() gives > > Traceback (most recent call last): > (...) > TypeError: unable to convert x (=c) to an integer > > Regards > Vasu The implementation of the determinant tries to be smarter than the naive formula for matrices larger than 4 but it's apparently broken... A backup solution in this case could be to fall back to another implementation: sage: M._charpoly_df()[0].factor() x^c*y^b*z^a - x^c*y^a*z^b - x^b*y^c*z^a + x^b*y^a*z^c + x^a*y^c*z^b - x^a*y^b*z^c - x^c*y^b + x^c*y^a + x^c*z^b - x^c*z^a + x^b*y^c - x^b*y^a - x^b*z^c + x^b*z^a - x^a*y^c + x^a*y^b + x^a*z^c - x^a*z^b - y^c*z^b + y^c*z^a + y^b*z^c - y^b*z^a - y^a*z^c + y^a*z^b Yann -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Symbolic determinant
Hi Any clues what is happening here? I am trying out calculations as Yann mentioned. M=matrix(SR,3,[1,1,1,x^a,x^b,1,y^a,y^b,1]) M.det() (y^b - 1)*x^a - (x^b - 1)*y^a + x^b - y^b Now if I try the one below M=matrix(SR,4,[1,1,1,1,x^a,x^b,x^c,1,y^a,y^b,y^c,1,z^a,z^b,z^c,1]) M.det() gives Traceback (most recent call last): File "", line 1, in File "_sage_input_39.py", line 10, in exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("TS5kZXQoKQ=="),globals()) +"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in File "/tmp/tmp5y9emK/___code___.py", line 2, in exec compile(u'M.det() File "", line 1, in File "matrix2.pyx", line 1156, in sage.matrix.matrix2.Matrix.det (sage/matrix/matrix2.c:7702) File "matrix2.pyx", line 1109, in sage.matrix.matrix2.Matrix.determinant (sage/matrix/matrix2.c:7234) File "matrix_symbolic_dense.pyx", line 291, in sage.matrix.matrix_symbolic_dense.Matrix_symbolic_dense.charpoly (sage/ matrix/matrix_symbolic_dense.c:2532) File "expression.pyx", line 4258, in sage.symbolic.expression.Expression.polynomial (sage/symbolic/ expression.cpp:18670) File "/home/vasu/Desktop/sage-4.4.4-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/symbolic/ expression_conversions.py", line 1007, in polynomial res = converter() File "/home/vasu/Desktop/sage-4.4.4-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/symbolic/ expression_conversions.py", line 214, in __call__ return self.arithmetic(ex, operator) File "/home/vasu/Desktop/sage-4.4.4-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/symbolic/ expression_conversions.py", line 961, in arithmetic ops = [self(a) for a in ex.operands()] File "/home/vasu/Desktop/sage-4.4.4-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/symbolic/ expression_conversions.py", line 214, in __call__ return self.arithmetic(ex, operator) File "/home/vasu/Desktop/sage-4.4.4-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/symbolic/ expression_conversions.py", line 961, in arithmetic ops = [self(a) for a in ex.operands()] File "/home/vasu/Desktop/sage-4.4.4-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/symbolic/ expression_conversions.py", line 214, in __call__ return self.arithmetic(ex, operator) File "/home/vasu/Desktop/sage-4.4.4-linux-32bit-ubuntu_10.04_lts- i686-Linux/local/lib/python2.6/site-packages/sage/symbolic/ expression_conversions.py", line 959, in arithmetic return self(base)**Integer(exp) File "integer.pyx", line 625, in sage.rings.integer.Integer.__init__ (sage/rings/integer.c:6419) File "expression.pyx", line 655, in sage.symbolic.expression.Expression._integer_ (sage/symbolic/ expression.cpp:4034) TypeError: unable to convert x (=c) to an integer Regards Vasu On Aug 12, 6:47 pm, vasu wrote: > Hi > Thanks for the suggestions. But there is one issue which still > rankles. Maybe it's just me, but I would prefer > x^a*x^b-x^c*x^d to turn up as x^(a+b)-x^(c+d) > > Anyway, thanks again for the help > > On Aug 12, 12:40 pm, kcrisman wrote: > > > On Aug 12, 3:24 pm, Mani Chandra wrote: > > > > Hi, > > > > In the same context, how can I get the following to work? > > > > A = matrix(SR, [[x, 1], [x**3, 4]]) > > > A.eigenvectors_right() > > > > __main__:1: UserWarning: Using generic algorithm for an inexact ring, > > > which may result in garbage from numerical precision issues. > > > __main__:1: UserWarning: Using generic algorithm for an inexact ring, > > > which will probably give incorrect results due to numerical precision > > > issues. > > > Traceback (click to the left of this block for traceback) > > > ... > > > TypeError: degree() takes exactly one argument (0 given) > > > This got broken over a year ago, and there is a patch which has is > > nearly ready for positive review on it. > > Seehttp://trac.sagemath.org/sage_trac/ticket/6934 > > for the discussion. > > > - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Symbolic determinant
Hi Thanks for the suggestions. But there is one issue which still rankles. Maybe it's just me, but I would prefer x^a*x^b-x^c*x^d to turn up as x^(a+b)-x^(c+d) Anyway, thanks again for the help On Aug 12, 12:40 pm, kcrisman wrote: > On Aug 12, 3:24 pm, Mani Chandra wrote: > > > > > Hi, > > > In the same context, how can I get the following to work? > > > A = matrix(SR, [[x, 1], [x**3, 4]]) > > A.eigenvectors_right() > > > __main__:1: UserWarning: Using generic algorithm for an inexact ring, > > which may result in garbage from numerical precision issues. > > __main__:1: UserWarning: Using generic algorithm for an inexact ring, > > which will probably give incorrect results due to numerical precision > > issues. > > Traceback (click to the left of this block for traceback) > > ... > > TypeError: degree() takes exactly one argument (0 given) > > This got broken over a year ago, and there is a patch which has is > nearly ready for positive review on it. > Seehttp://trac.sagemath.org/sage_trac/ticket/6934 > for the discussion. > > - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: matrix_plot
Thanks. No problem. I wrote a function to create what I wanted using 'polygon'. It is useful to know that colormaps were not the answer. Dave On Aug 12, 3:47 pm, William Stein wrote: > On Thu, Aug 12, 2010 at 3:38 PM, davidp wrote: > > I am using Sage Version 4.3, Release Date: 2009-12-24. The two plots: > > > matrix_plot(matrix(2,[2,2,3,3]),axes=false,frame=false) > > matrix_plot(matrix(2,[1,1,3,3]),axes=false,frame=false) > > > look the same to me. I tried various cmaps with the same result. Is > > there a way to set a cmap so that the plots of these matrices will be > > distinct? > > No. I think by default the input data is scaled to be between I think > 0 and 1. You'll have to try something besides color maps. > > William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Making windows exe
Sounds good. Thanks again for all your help. On Aug 12, 3:48 pm, William Stein wrote: > On Thu, Aug 12, 2010 at 3:45 PM, fitzsnaggle wrote: > > My program just needs the following as far as I can tell: > > > fft and fftshift, > > auto-correlation > > svd > > matrix manipulation > > basic calculus > > complex numbers > > > I'm trying to create a gui to reconstruct an image from its fourier > > moduli from data taken via usb. > > > Do you think it is possible with the packages available that ? > > I don't know. Probably the above can be accomplished using sympy + > numpy + scipy, which are all in EPD (enthought's Python distribution), > which supports MS Windows. You may want to ask Enthought or on a > scipy list or something. > > > > > > > On Aug 12, 3:21 pm, William Stein wrote: > >> On Thu, Aug 12, 2010 at 3:13 PM, fitzsnaggle wrote: > >> > That's discouraging. I can still use a lot of the packages that sage > >> > comes with to create the program in python and then compile to exe, > >> > right? > > >> It depends entirely on the packages and the program. If your program > >> does nothing but say "2+2" then it's easy. If it computes the > >> reduction type (via genus2reduction) of a curve obtained by some > >> construction using Groebner basis (computed using Singular) that > >> involves sieving for elliptic curves with certain properties (using > >> mwrank), the situation is different... :-) > > >> > Thanks for your quick response. > > >> > On Aug 12, 2:56 pm, William Stein wrote: > >> >> On Thu, Aug 12, 2010 at 2:50 PM, fitzsnaggle > >> >> wrote: > >> >> > I don't undestand why not though. If it is possible to do this python, > >> >> > then why not with sage? > > >> >> Sage is an extremely complicated program involving over 5 million > >> >> lines of code and multiple running processes and programs that have to > >> >> be run in a very specific environment. In addition, it is currently > >> >> not possible to build about half of Sage at all under Microsoft > >> >> Windows, and estimates range from 2 to 100 years of hard work (which > >> >> isn't going on, anyways) to change that. > > >> >> -- William > > >> >> > On Aug 12, 2:46 pm, William Stein wrote: > >> >> >> On Thu, Aug 12, 2010 at 2:41 PM, fitzsnaggle > >> >> >> wrote: > >> >> >> > I am running Sage on vmware. I'm wondering if I can make a piece > >> >> >> > of my > >> >> >> > program with sage and then turn that into a python script and then > >> >> >> > cross-compile it to run as a windows exe that people without Sage > >> >> >> > or > >> >> >> > Python can use. > > >> >> >> This is absolutely not possible, in general. Sorry. > > >> >> >> William > > >> >> >> > On Aug 12, 2:14 pm, Harald Schilly > >> >> >> > wrote: > >> >> >> >> On Aug 12, 11:06 pm, fitzsnaggle wrote: > > >> >> >> >> > Is it possible to make a script on sage, import its libraries > >> >> >> >> > into a > >> >> >> >> > python script and then compile that script as a standalone > >> >> >> >> > windows exe > >> >> >> >> > using py2exe or pyinstaller? > > >> >> >> >> Technically, I think yes - but that would not do anything useful > >> >> >> >> at > >> >> >> >> all. I suggest you to join the sage-windows group to be updated > >> >> >> >> about > >> >> >> >> the development towards running Sage on windows. For now, you > >> >> >> >> need to > >> >> >> >> emulate a Linux environment. For that, run the provided vmware > >> >> >> >> image. > > >> >> >> >> H > > >> >> >> > -- > >> >> >> > To post to this group, send email to sage-support@googlegroups.com > >> >> >> > To unsubscribe from this group, send email to > >> >> >> > sage-support+unsubscr...@googlegroups.com > >> >> >> > For more options, visit this group > >> >> >> > athttp://groups.google.com/group/sage-support > >> >> >> > URL:http://www.sagemath.org > > >> >> >> -- > >> >> >> William Stein > >> >> >> Professor of Mathematics > >> >> >> University of Washingtonhttp://wstein.org > > >> >> > -- > >> >> > To post to this group, send email to sage-support@googlegroups.com > >> >> > To unsubscribe from this group, send email to > >> >> > sage-support+unsubscr...@googlegroups.com > >> >> > For more options, visit this group > >> >> > athttp://groups.google.com/group/sage-support > >> >> > URL:http://www.sagemath.org > > >> >> -- > >> >> William Stein > >> >> Professor of Mathematics > >> >> University of Washingtonhttp://wstein.org > > >> > -- > >> > To post to this group, send email to sage-support@googlegroups.com > >> > To unsubscribe from this group, send email to > >> > sage-support+unsubscr...@googlegroups.com > >> > For more options, visit this group > >> > athttp://groups.google.com/group/sage-support > >> > URL:http://www.sagemath.org > > >> -- > >> William Stein > >> Professor of Mathematics > >> University of Washingtonhttp://wstein.org > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > > sage-support+unsub
Re: [sage-support] Re: Making windows exe
On Thu, Aug 12, 2010 at 3:45 PM, fitzsnaggle wrote: > My program just needs the following as far as I can tell: > > fft and fftshift, > auto-correlation > svd > matrix manipulation > basic calculus > complex numbers > > I'm trying to create a gui to reconstruct an image from its fourier > moduli from data taken via usb. > > Do you think it is possible with the packages available that ? I don't know. Probably the above can be accomplished using sympy + numpy + scipy, which are all in EPD (enthought's Python distribution), which supports MS Windows. You may want to ask Enthought or on a scipy list or something. > > On Aug 12, 3:21 pm, William Stein wrote: >> On Thu, Aug 12, 2010 at 3:13 PM, fitzsnaggle wrote: >> > That's discouraging. I can still use a lot of the packages that sage >> > comes with to create the program in python and then compile to exe, >> > right? >> >> It depends entirely on the packages and the program. If your program >> does nothing but say "2+2" then it's easy. If it computes the >> reduction type (via genus2reduction) of a curve obtained by some >> construction using Groebner basis (computed using Singular) that >> involves sieving for elliptic curves with certain properties (using >> mwrank), the situation is different... :-) >> >> >> >> >> >> > Thanks for your quick response. >> >> > On Aug 12, 2:56 pm, William Stein wrote: >> >> On Thu, Aug 12, 2010 at 2:50 PM, fitzsnaggle >> >> wrote: >> >> > I don't undestand why not though. If it is possible to do this python, >> >> > then why not with sage? >> >> >> Sage is an extremely complicated program involving over 5 million >> >> lines of code and multiple running processes and programs that have to >> >> be run in a very specific environment. In addition, it is currently >> >> not possible to build about half of Sage at all under Microsoft >> >> Windows, and estimates range from 2 to 100 years of hard work (which >> >> isn't going on, anyways) to change that. >> >> >> -- William >> >> >> > On Aug 12, 2:46 pm, William Stein wrote: >> >> >> On Thu, Aug 12, 2010 at 2:41 PM, fitzsnaggle >> >> >> wrote: >> >> >> > I am running Sage on vmware. I'm wondering if I can make a piece of >> >> >> > my >> >> >> > program with sage and then turn that into a python script and then >> >> >> > cross-compile it to run as a windows exe that people without Sage or >> >> >> > Python can use. >> >> >> >> This is absolutely not possible, in general. Sorry. >> >> >> >> William >> >> >> >> > On Aug 12, 2:14 pm, Harald Schilly wrote: >> >> >> >> On Aug 12, 11:06 pm, fitzsnaggle wrote: >> >> >> >> >> > Is it possible to make a script on sage, import its libraries >> >> >> >> > into a >> >> >> >> > python script and then compile that script as a standalone >> >> >> >> > windows exe >> >> >> >> > using py2exe or pyinstaller? >> >> >> >> >> Technically, I think yes - but that would not do anything useful at >> >> >> >> all. I suggest you to join the sage-windows group to be updated >> >> >> >> about >> >> >> >> the development towards running Sage on windows. For now, you need >> >> >> >> to >> >> >> >> emulate a Linux environment. For that, run the provided vmware >> >> >> >> image. >> >> >> >> >> H >> >> >> >> > -- >> >> >> > To post to this group, send email to sage-support@googlegroups.com >> >> >> > To unsubscribe from this group, send email to >> >> >> > sage-support+unsubscr...@googlegroups.com >> >> >> > For more options, visit this group >> >> >> > athttp://groups.google.com/group/sage-support >> >> >> > URL:http://www.sagemath.org >> >> >> >> -- >> >> >> William Stein >> >> >> Professor of Mathematics >> >> >> University of Washingtonhttp://wstein.org >> >> >> > -- >> >> > To post to this group, send email to sage-support@googlegroups.com >> >> > To unsubscribe from this group, send email to >> >> > sage-support+unsubscr...@googlegroups.com >> >> > For more options, visit this group >> >> > athttp://groups.google.com/group/sage-support >> >> > URL:http://www.sagemath.org >> >> >> -- >> >> William Stein >> >> Professor of Mathematics >> >> University of Washingtonhttp://wstein.org >> >> > -- >> > To post to this group, send email to sage-support@googlegroups.com >> > To unsubscribe from this group, send email to >> > sage-support+unsubscr...@googlegroups.com >> > For more options, visit this group >> > athttp://groups.google.com/group/sage-support >> > URL:http://www.sagemath.org >> >> -- >> William Stein >> Professor of Mathematics >> University of Washingtonhttp://wstein.org > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To u
[sage-support] Limiting the display range of a 3d plot
Is there any way to limit the display range of a 3d plot, using either jmol or tachyon? (Something similar to xmax and ymax with a 2d plot.) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] matrix_plot
On Thu, Aug 12, 2010 at 3:38 PM, davidp wrote: > I am using Sage Version 4.3, Release Date: 2009-12-24. The two plots: > > matrix_plot(matrix(2,[2,2,3,3]),axes=false,frame=false) > matrix_plot(matrix(2,[1,1,3,3]),axes=false,frame=false) > > look the same to me. I tried various cmaps with the same result. Is > there a way to set a cmap so that the plots of these matrices will be > distinct? No. I think by default the input data is scaled to be between I think 0 and 1. You'll have to try something besides color maps. William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Making windows exe
My program just needs the following as far as I can tell: fft and fftshift, auto-correlation svd matrix manipulation basic calculus complex numbers I'm trying to create a gui to reconstruct an image from its fourier moduli from data taken via usb. Do you think it is possible with the packages available that ? On Aug 12, 3:21 pm, William Stein wrote: > On Thu, Aug 12, 2010 at 3:13 PM, fitzsnaggle wrote: > > That's discouraging. I can still use a lot of the packages that sage > > comes with to create the program in python and then compile to exe, > > right? > > It depends entirely on the packages and the program. If your program > does nothing but say "2+2" then it's easy. If it computes the > reduction type (via genus2reduction) of a curve obtained by some > construction using Groebner basis (computed using Singular) that > involves sieving for elliptic curves with certain properties (using > mwrank), the situation is different... :-) > > > > > > > Thanks for your quick response. > > > On Aug 12, 2:56 pm, William Stein wrote: > >> On Thu, Aug 12, 2010 at 2:50 PM, fitzsnaggle wrote: > >> > I don't undestand why not though. If it is possible to do this python, > >> > then why not with sage? > > >> Sage is an extremely complicated program involving over 5 million > >> lines of code and multiple running processes and programs that have to > >> be run in a very specific environment. In addition, it is currently > >> not possible to build about half of Sage at all under Microsoft > >> Windows, and estimates range from 2 to 100 years of hard work (which > >> isn't going on, anyways) to change that. > > >> -- William > > >> > On Aug 12, 2:46 pm, William Stein wrote: > >> >> On Thu, Aug 12, 2010 at 2:41 PM, fitzsnaggle > >> >> wrote: > >> >> > I am running Sage on vmware. I'm wondering if I can make a piece of my > >> >> > program with sage and then turn that into a python script and then > >> >> > cross-compile it to run as a windows exe that people without Sage or > >> >> > Python can use. > > >> >> This is absolutely not possible, in general. Sorry. > > >> >> William > > >> >> > On Aug 12, 2:14 pm, Harald Schilly wrote: > >> >> >> On Aug 12, 11:06 pm, fitzsnaggle wrote: > > >> >> >> > Is it possible to make a script on sage, import its libraries into > >> >> >> > a > >> >> >> > python script and then compile that script as a standalone windows > >> >> >> > exe > >> >> >> > using py2exe or pyinstaller? > > >> >> >> Technically, I think yes - but that would not do anything useful at > >> >> >> all. I suggest you to join the sage-windows group to be updated about > >> >> >> the development towards running Sage on windows. For now, you need to > >> >> >> emulate a Linux environment. For that, run the provided vmware image. > > >> >> >> H > > >> >> > -- > >> >> > To post to this group, send email to sage-support@googlegroups.com > >> >> > To unsubscribe from this group, send email to > >> >> > sage-support+unsubscr...@googlegroups.com > >> >> > For more options, visit this group > >> >> > athttp://groups.google.com/group/sage-support > >> >> > URL:http://www.sagemath.org > > >> >> -- > >> >> William Stein > >> >> Professor of Mathematics > >> >> University of Washingtonhttp://wstein.org > > >> > -- > >> > To post to this group, send email to sage-support@googlegroups.com > >> > To unsubscribe from this group, send email to > >> > sage-support+unsubscr...@googlegroups.com > >> > For more options, visit this group > >> > athttp://groups.google.com/group/sage-support > >> > URL:http://www.sagemath.org > > >> -- > >> William Stein > >> Professor of Mathematics > >> University of Washingtonhttp://wstein.org > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > > sage-support+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > William Stein > Professor of Mathematics > University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] matrix_plot
I am using Sage Version 4.3, Release Date: 2009-12-24. The two plots: matrix_plot(matrix(2,[2,2,3,3]),axes=false,frame=false) matrix_plot(matrix(2,[1,1,3,3]),axes=false,frame=false) look the same to me. I tried various cmaps with the same result. Is there a way to set a cmap so that the plots of these matrices will be distinct? Thanks, Dave -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Making windows exe
On Thu, Aug 12, 2010 at 3:13 PM, fitzsnaggle wrote: > That's discouraging. I can still use a lot of the packages that sage > comes with to create the program in python and then compile to exe, > right? It depends entirely on the packages and the program. If your program does nothing but say "2+2" then it's easy. If it computes the reduction type (via genus2reduction) of a curve obtained by some construction using Groebner basis (computed using Singular) that involves sieving for elliptic curves with certain properties (using mwrank), the situation is different... :-) > > Thanks for your quick response. > > On Aug 12, 2:56 pm, William Stein wrote: >> On Thu, Aug 12, 2010 at 2:50 PM, fitzsnaggle wrote: >> > I don't undestand why not though. If it is possible to do this python, >> > then why not with sage? >> >> Sage is an extremely complicated program involving over 5 million >> lines of code and multiple running processes and programs that have to >> be run in a very specific environment. In addition, it is currently >> not possible to build about half of Sage at all under Microsoft >> Windows, and estimates range from 2 to 100 years of hard work (which >> isn't going on, anyways) to change that. >> >> -- William >> >> >> >> >> >> > On Aug 12, 2:46 pm, William Stein wrote: >> >> On Thu, Aug 12, 2010 at 2:41 PM, fitzsnaggle >> >> wrote: >> >> > I am running Sage on vmware. I'm wondering if I can make a piece of my >> >> > program with sage and then turn that into a python script and then >> >> > cross-compile it to run as a windows exe that people without Sage or >> >> > Python can use. >> >> >> This is absolutely not possible, in general. Sorry. >> >> >> William >> >> >> > On Aug 12, 2:14 pm, Harald Schilly wrote: >> >> >> On Aug 12, 11:06 pm, fitzsnaggle wrote: >> >> >> >> > Is it possible to make a script on sage, import its libraries into a >> >> >> > python script and then compile that script as a standalone windows >> >> >> > exe >> >> >> > using py2exe or pyinstaller? >> >> >> >> Technically, I think yes - but that would not do anything useful at >> >> >> all. I suggest you to join the sage-windows group to be updated about >> >> >> the development towards running Sage on windows. For now, you need to >> >> >> emulate a Linux environment. For that, run the provided vmware image. >> >> >> >> H >> >> >> > -- >> >> > To post to this group, send email to sage-support@googlegroups.com >> >> > To unsubscribe from this group, send email to >> >> > sage-support+unsubscr...@googlegroups.com >> >> > For more options, visit this group >> >> > athttp://groups.google.com/group/sage-support >> >> > URL:http://www.sagemath.org >> >> >> -- >> >> William Stein >> >> Professor of Mathematics >> >> University of Washingtonhttp://wstein.org >> >> > -- >> > To post to this group, send email to sage-support@googlegroups.com >> > To unsubscribe from this group, send email to >> > sage-support+unsubscr...@googlegroups.com >> > For more options, visit this group >> > athttp://groups.google.com/group/sage-support >> > URL:http://www.sagemath.org >> >> -- >> William Stein >> Professor of Mathematics >> University of Washingtonhttp://wstein.org > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- William Stein 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 sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Making windows exe
That's discouraging. I can still use a lot of the packages that sage comes with to create the program in python and then compile to exe, right? Thanks for your quick response. On Aug 12, 2:56 pm, William Stein wrote: > On Thu, Aug 12, 2010 at 2:50 PM, fitzsnaggle wrote: > > I don't undestand why not though. If it is possible to do this python, > > then why not with sage? > > Sage is an extremely complicated program involving over 5 million > lines of code and multiple running processes and programs that have to > be run in a very specific environment. In addition, it is currently > not possible to build about half of Sage at all under Microsoft > Windows, and estimates range from 2 to 100 years of hard work (which > isn't going on, anyways) to change that. > > -- William > > > > > > > On Aug 12, 2:46 pm, William Stein wrote: > >> On Thu, Aug 12, 2010 at 2:41 PM, fitzsnaggle wrote: > >> > I am running Sage on vmware. I'm wondering if I can make a piece of my > >> > program with sage and then turn that into a python script and then > >> > cross-compile it to run as a windows exe that people without Sage or > >> > Python can use. > > >> This is absolutely not possible, in general. Sorry. > > >> William > > >> > On Aug 12, 2:14 pm, Harald Schilly wrote: > >> >> On Aug 12, 11:06 pm, fitzsnaggle wrote: > > >> >> > Is it possible to make a script on sage, import its libraries into a > >> >> > python script and then compile that script as a standalone windows exe > >> >> > using py2exe or pyinstaller? > > >> >> Technically, I think yes - but that would not do anything useful at > >> >> all. I suggest you to join the sage-windows group to be updated about > >> >> the development towards running Sage on windows. For now, you need to > >> >> emulate a Linux environment. For that, run the provided vmware image. > > >> >> H > > >> > -- > >> > To post to this group, send email to sage-support@googlegroups.com > >> > To unsubscribe from this group, send email to > >> > sage-support+unsubscr...@googlegroups.com > >> > For more options, visit this group > >> > athttp://groups.google.com/group/sage-support > >> > URL:http://www.sagemath.org > > >> -- > >> William Stein > >> Professor of Mathematics > >> University of Washingtonhttp://wstein.org > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > > sage-support+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > William Stein > Professor of Mathematics > University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Making windows exe
On Thu, Aug 12, 2010 at 2:50 PM, fitzsnaggle wrote: > I don't undestand why not though. If it is possible to do this python, > then why not with sage? Sage is an extremely complicated program involving over 5 million lines of code and multiple running processes and programs that have to be run in a very specific environment. In addition, it is currently not possible to build about half of Sage at all under Microsoft Windows, and estimates range from 2 to 100 years of hard work (which isn't going on, anyways) to change that. -- William > > On Aug 12, 2:46 pm, William Stein wrote: >> On Thu, Aug 12, 2010 at 2:41 PM, fitzsnaggle wrote: >> > I am running Sage on vmware. I'm wondering if I can make a piece of my >> > program with sage and then turn that into a python script and then >> > cross-compile it to run as a windows exe that people without Sage or >> > Python can use. >> >> This is absolutely not possible, in general. Sorry. >> >> William >> >> >> >> >> >> > On Aug 12, 2:14 pm, Harald Schilly wrote: >> >> On Aug 12, 11:06 pm, fitzsnaggle wrote: >> >> >> > Is it possible to make a script on sage, import its libraries into a >> >> > python script and then compile that script as a standalone windows exe >> >> > using py2exe or pyinstaller? >> >> >> Technically, I think yes - but that would not do anything useful at >> >> all. I suggest you to join the sage-windows group to be updated about >> >> the development towards running Sage on windows. For now, you need to >> >> emulate a Linux environment. For that, run the provided vmware image. >> >> >> H >> >> > -- >> > To post to this group, send email to sage-support@googlegroups.com >> > To unsubscribe from this group, send email to >> > sage-support+unsubscr...@googlegroups.com >> > For more options, visit this group >> > athttp://groups.google.com/group/sage-support >> > URL:http://www.sagemath.org >> >> -- >> William Stein >> Professor of Mathematics >> University of Washingtonhttp://wstein.org > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- William Stein 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 sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Making windows exe
I don't undestand why not though. If it is possible to do this python, then why not with sage? On Aug 12, 2:46 pm, William Stein wrote: > On Thu, Aug 12, 2010 at 2:41 PM, fitzsnaggle wrote: > > I am running Sage on vmware. I'm wondering if I can make a piece of my > > program with sage and then turn that into a python script and then > > cross-compile it to run as a windows exe that people without Sage or > > Python can use. > > This is absolutely not possible, in general. Sorry. > > William > > > > > > > On Aug 12, 2:14 pm, Harald Schilly wrote: > >> On Aug 12, 11:06 pm, fitzsnaggle wrote: > > >> > Is it possible to make a script on sage, import its libraries into a > >> > python script and then compile that script as a standalone windows exe > >> > using py2exe or pyinstaller? > > >> Technically, I think yes - but that would not do anything useful at > >> all. I suggest you to join the sage-windows group to be updated about > >> the development towards running Sage on windows. For now, you need to > >> emulate a Linux environment. For that, run the provided vmware image. > > >> H > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > > sage-support+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > William Stein > Professor of Mathematics > University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Making windows exe
On Thu, Aug 12, 2010 at 2:41 PM, fitzsnaggle wrote: > I am running Sage on vmware. I'm wondering if I can make a piece of my > program with sage and then turn that into a python script and then > cross-compile it to run as a windows exe that people without Sage or > Python can use. This is absolutely not possible, in general. Sorry. William > > On Aug 12, 2:14 pm, Harald Schilly wrote: >> On Aug 12, 11:06 pm, fitzsnaggle wrote: >> >> > Is it possible to make a script on sage, import its libraries into a >> > python script and then compile that script as a standalone windows exe >> > using py2exe or pyinstaller? >> >> Technically, I think yes - but that would not do anything useful at >> all. I suggest you to join the sage-windows group to be updated about >> the development towards running Sage on windows. For now, you need to >> emulate a Linux environment. For that, run the provided vmware image. >> >> H > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- William Stein 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 sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Making windows exe
I am running Sage on vmware. I'm wondering if I can make a piece of my program with sage and then turn that into a python script and then cross-compile it to run as a windows exe that people without Sage or Python can use. On Aug 12, 2:14 pm, Harald Schilly wrote: > On Aug 12, 11:06 pm, fitzsnaggle wrote: > > > Is it possible to make a script on sage, import its libraries into a > > python script and then compile that script as a standalone windows exe > > using py2exe or pyinstaller? > > Technically, I think yes - but that would not do anything useful at > all. I suggest you to join the sage-windows group to be updated about > the development towards running Sage on windows. For now, you need to > emulate a Linux environment. For that, run the provided vmware image. > > H -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Making windows exe
On Aug 12, 11:06 pm, fitzsnaggle wrote: > Is it possible to make a script on sage, import its libraries into a > python script and then compile that script as a standalone windows exe > using py2exe or pyinstaller? Technically, I think yes - but that would not do anything useful at all. I suggest you to join the sage-windows group to be updated about the development towards running Sage on windows. For now, you need to emulate a Linux environment. For that, run the provided vmware image. H -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Making windows exe
Is it possible to make a script on sage, import its libraries into a python script and then compile that script as a standalone windows exe using py2exe or pyinstaller? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Symbolic determinant
On Aug 12, 3:24 pm, Mani Chandra wrote: > Hi, > > In the same context, how can I get the following to work? > > A = matrix(SR, [[x, 1], [x**3, 4]]) > A.eigenvectors_right() > > __main__:1: UserWarning: Using generic algorithm for an inexact ring, > which may result in garbage from numerical precision issues. > __main__:1: UserWarning: Using generic algorithm for an inexact ring, > which will probably give incorrect results due to numerical precision > issues. > Traceback (click to the left of this block for traceback) > ... > TypeError: degree() takes exactly one argument (0 given) > > This got broken over a year ago, and there is a patch which has is nearly ready for positive review on it. See http://trac.sagemath.org/sage_trac/ticket/6934 for the discussion. - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: Symbolic determinant
Hi, In the same context, how can I get the following to work? A = matrix(SR, [[x, 1], [x**3, 4]]) A.eigenvectors_right() __main__:1: UserWarning: Using generic algorithm for an inexact ring, which may result in garbage from numerical precision issues. __main__:1: UserWarning: Using generic algorithm for an inexact ring, which will probably give incorrect results due to numerical precision issues. Traceback (click to the left of this block for traceback) ... TypeError: degree() takes exactly one argument (0 given) On Thu, Aug 12, 2010 at 10:05 PM, kcrisman wrote: > > Nice example, Yann. > > > Is the following helping? > > sage: var('x a b c d') > > (x, a, b, c, d) > > To Vasu: Notice that it's important that x is a symbolic variable > here, not a polynomial indeterminate. > > > sage: M=matrix(SR,2,[x^a, x^b, x^c, x^d]) > > If you tried this with your R. definition, you would get > > TypeError: non-integral exponents not supported > > instead of this nice answer. > > > sage: M > > [x^a x^b] > > [x^c x^d] > > sage: M.det() > > x^d*x^a - x^c*x^b > > This is because x^(1/2) makes sense as a symbolic element, but not as > a polynomial thing, and the polynomial ring has no way of knowing that > your a,b,c,d are nonnegative integers. My guess is that "assume()"- > ing that would not be recognized by the polynomial ring either. > > - kcrisman > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Symbolic determinant
Nice example, Yann. > Is the following helping? > sage: var('x a b c d') > (x, a, b, c, d) To Vasu: Notice that it's important that x is a symbolic variable here, not a polynomial indeterminate. > sage: M=matrix(SR,2,[x^a, x^b, x^c, x^d]) If you tried this with your R. definition, you would get TypeError: non-integral exponents not supported instead of this nice answer. > sage: M > [x^a x^b] > [x^c x^d] > sage: M.det() > x^d*x^a - x^c*x^b This is because x^(1/2) makes sense as a symbolic element, but not as a polynomial thing, and the polynomial ring has no way of knowing that your a,b,c,d are nonnegative integers. My guess is that "assume()"- ing that would not be recognized by the polynomial ring either. - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Symbolic determinant
On Aug 12, 5:32 pm, vasu wrote: > Hi > I wanted to know how could one compute symbolic determinants. To give > an idea of what I am looking for, > > R.=PolynomialRing(QQ,'x') > M = [ x^a,x^b][x^c x^d] > I would like to compute the determinant of the 2*2 matrix M, say. Now, > I know that a,b,c,d are all integers but I don't want to give them > values yet. How should I proceed? > > Hope the question is clear > > Regards > Vasu Is the following helping? sage: var('x a b c d') (x, a, b, c, d) sage: M=matrix(SR,2,[x^a, x^b, x^c, x^d]) sage: M [x^a x^b] [x^c x^d] sage: M.det() x^d*x^a - x^c*x^b -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Symbolic determinant
Hi I wanted to know how could one compute symbolic determinants. To give an idea of what I am looking for, R.=PolynomialRing(QQ,'x') M = [ x^a,x^b][x^c x^d] I would like to compute the determinant of the 2*2 matrix M, say. Now, I know that a,b,c,d are all integers but I don't want to give them values yet. How should I proceed? Hope the question is clear Regards Vasu -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: help! windows crash -> sage inaccessible from host browser
Roland, Thanks for the suggestion; I'll go the VMplayer route. It's too bad, really. I try to use FOSS whenever possible. Any idea what causes this problem? Josh On Aug 11, 10:16 pm, Rolandb wrote: > On 11 aug, 22:36, Josh wrote: > > > > > This is probably completely noobish of me, but I really need help > > solving the following problem (which has now occurred for the second > > time). First, the setup: > > > Sage Version 4.3 > > VirtualBox 3.1.4 > > Windows 7 > > Firefox 3.6.8 > > > My machine crashed with the VM running Sage. When I rebooted, I > > restarted VirtualBox, restarted the VM, and pointed the (host) browser > > to Sage's IP (192.168.56.101). No dice: I get a "Firefox can't > > establish a connection to the server at 192.168.56.101." Furthermore, > > pinging 192.168.56.101 from a command prompt gives 4 healthy <1ms > > responses. > > > Inside the VM, opening Firefox and pointing it > > tohttp://localhost:8000/home/admin/ > > initially gave a "can't establish connection" error. Then I clicked > > on the "sage:prompt" icon and typed "notebook()". The result was that > > now the VM browser does display the "Active Worksheets" page > > correctly, although Sage threw the following at me: > > > The notebook files are stored in: sage_notebook.sagenb > > ** > > * * > > * Open your web browser tohttp://localhost:8000* > > * * > > ** > > Removing stale pidfile /home/sage/.sage/sage_notebook.sagenb/ > > twistd.pid > > 2010-08-11 13:11:24-0700 [-] Log opened. > > 2010-08-11 13:11:24-0700 [-] twistd 8.2.0 (/sage/sage/local/bin/python > > 2.6.2) st > > arting up. > > 2010-08-11 13:11:24-0700 [-] reactor class: > > twisted.internet.selectreactor.Selec > > tReactor. > > 2010-08-11 13:11:24-0700 [-] twisted.web2.channel.http.HTTPFactory > > starting on 8 > > 000 > > 2010-08-11 13:11:24-0700 [-] Starting factory > > > tory instance at 0xb752b2c> > > > The host browser still does not see 192.168.56.101. Please help! > > > Thanks, > > Josh > > Josh, I encountered this problem often so I became frustrated... > My advice is to switch immediately to the VMplayer route and do not > use Virtualbox anymore. > (VMplayer has improved a lot) > Look at the download pagehttp://wiki.sagemath.org/DownloadAndInstallationGuide > what to do, > and follow the instructions > athttp://groups.google.com/group/sage-support/t/7e82f6dc7b4f5065 > Before you switch, do NOT forget to download ALL your worksheet files > first! > Success! Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org