[sage-support] Re: Symbolic determinant

2010-08-12 Thread Yann
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) t

[sage-support] Re: Symbolic determinant

2010-08-12 Thread vasu
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 Traceb

[sage-support] Re: Symbolic determinant

2010-08-12 Thread vasu
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

[sage-support] Re: matrix_plot

2010-08-12 Thread davidp
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.  

[sage-support] Re: Making windows exe

2010-08-12 Thread fitzsnaggle
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 calculu

Re: [sage-support] Re: Making windows exe

2010-08-12 Thread William Stein
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 f

[sage-support] Limiting the display range of a 3d plot

2010-08-12 Thread Mike Witt
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.c

Re: [sage-support] matrix_plot

2010-08-12 Thread William Stein
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 sam

[sage-support] Re: Making windows exe

2010-08-12 Thread fitzsnaggle
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 av

[sage-support] matrix_plot

2010-08-12 Thread davidp
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

Re: [sage-support] Re: Making windows exe

2010-08-12 Thread William Stein
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

[sage-support] Re: Making windows exe

2010-08-12 Thread fitzsnaggle
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 wh

Re: [sage-support] Re: Making windows exe

2010-08-12 Thread William Stein
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

[sage-support] Re: Making windows exe

2010-08-12 Thread fitzsnaggle
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

Re: [sage-support] Re: Making windows exe

2010-08-12 Thread William Stein
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 absolu

[sage-support] Re: Making windows exe

2010-08-12 Thread fitzsnaggle
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, fitzsnagg

[sage-support] Re: Making windows exe

2010-08-12 Thread Harald Schilly
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

[sage-support] Making windows exe

2010-08-12 Thread fitzsnaggle
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-suppor

[sage-support] Re: Symbolic determinant

2010-08-12 Thread kcrisman
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 prec

Re: [sage-support] Re: Symbolic determinant

2010-08-12 Thread Mani Chandra
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 algor

[sage-support] Re: Symbolic determinant

2010-08-12 Thread kcrisman
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 ge

[sage-support] Re: Symbolic determinant

2010-08-12 Thread Yann
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

[sage-support] Symbolic determinant

2010-08-12 Thread vasu
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 val

[sage-support] Re: help! windows crash -> sage inaccessible from host browser

2010-08-12 Thread Josh
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 re