[sage-support] Re: Memory issues with maxima in SAGE

2009-08-15 Thread Robert Dodier
Mani chandra wrote: > Yes, the computation of the "select_mode" function does indeed > succeed for simple expressions. But if you run the code, you will notice > that it works for some modes which probably have more complicated > expressions than the ones for which it breaks. Also the modes f

[sage-support] Re: ETS.spkg succesfully rebuilt

2009-08-15 Thread Jorge E . ´Sanchez Sanchez
Hi, just to tell you that even I have full usefullness of ETS-mayavi, I have just tried to make a test running Chaco's demo.py, and then, I can tell you that the problem I had when building Enable spkg had some unwanted consequences. Such Enable diagnose at the ending of Enable's buildin

[sage-support] Re: Upgrading python packages in sage

2009-08-15 Thread Minh Nguyen
Hi John, On Sun, Aug 16, 2009 at 4:55 AM, jds wrote: > > I'm using a local sage installation as my main python distribution, so > I run "sage -sh" before doing any python work. If I download and > install newer versions of the packages, e.g. networkx, which has some > api changes in the new versi

[sage-support] Re: Upgrading python packages in sage

2009-08-15 Thread William Stein
On Sat, Aug 15, 2009 at 11:55 AM, jds wrote: > > I'm using a local sage installation as my main python distribution, so > I run "sage -sh" before doing any python work. If I download and > install newer versions of the packages, e.g. networkx, which has some > api changes in the new versions, will

[sage-support] errors when inverting generators in HeckeAlgebraSymmetricGroupT

2009-08-15 Thread Jeff
While computing some examples in HeckeAlgebraSymmetricGroupT I discovered some errors. See the following example sage: H=HeckeAlgebraSymmetricGroupT(QQ,3) sage: T1=H.algebra_generators()[0] sage: T1^-1 T[1, 2, 3] sage: H.one_element() T[1, 2, 3] I would like to take the inverse of the generator

[sage-support] Upgrading python packages in sage

2009-08-15 Thread jds
I'm using a local sage installation as my main python distribution, so I run "sage -sh" before doing any python work. If I download and install newer versions of the packages, e.g. networkx, which has some api changes in the new versions, will this possibly break my sage installation? Or does sage

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-15 Thread William Stein
On Sat, Aug 15, 2009 at 11:02 AM, Mani chandra wrote: > > William Stein wrote: >> On Sat, Aug 15, 2009 at 5:44 AM, Mani chandra wrote: >> >>> Hi, >>> >>>    I wrote a code in sage to construct a Low Dimensional model for the >>> Magnetohydrodynamic equations to study dynamos etc... But the program

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-15 Thread Mani chandra
William Stein wrote: > On Sat, Aug 15, 2009 at 5:44 AM, Mani chandra wrote: > >> Hi, >> >>I wrote a code in sage to construct a Low Dimensional model for the >> Magnetohydrodynamic equations to study dynamos etc... But the program >> crashes at different points on different machines with th

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-15 Thread Mani chandra
Robert Dodier wrote: > Mani chandra wrote: > > >> def select_mode(func,l,m,n): >> val = (func*exp(-I*(l*x + m*y + >> n*z))).integrate(x,0,2*pi).integrate(y,0,2*pi).integrate(z,0,2*pi) >> return val/(8*pi**3) >> > > I guess l, m, and n are some integers between -2 and 2. > What is f

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-15 Thread Robert Dodier
Mani chandra wrote: > def select_mode(func,l,m,n): > val = (func*exp(-I*(l*x + m*y + > n*z))).integrate(x,0,2*pi).integrate(y,0,2*pi).integrate(z,0,2*pi) > return val/(8*pi**3) I guess l, m, and n are some integers between -2 and 2. What is func? (I see the definition for it in the code

[sage-support] Re: Memory issues with maxima in SAGE

2009-08-15 Thread William Stein
On Sat, Aug 15, 2009 at 5:44 AM, Mani chandra wrote: > Hi, > >    I wrote a code in sage to construct a Low Dimensional model for the > Magnetohydrodynamic equations to study dynamos etc... But the program > crashes at different points on different machines with the following error: > > Traceback

[sage-support] Re: Interface to mathematica

2009-08-15 Thread Minh Nguyen
Hi Felix, On Sat, Aug 15, 2009 at 11:06 PM, thelamecamel wrote: > > Hi Viny, > > The following works for me: > > def mmatosage(mma_list): ># Convert the mathematica object to a string >string = repr(mma_list) ># Convert mathematica-style {} to python style [] >string = string.repl

[sage-support] Re: Interface to mathematica

2009-08-15 Thread thelamecamel
Hi Viny, The following works for me: def mmatosage(mma_list): # Convert the mathematica object to a string string = repr(mma_list) # Convert mathematica-style {} to python style [] string = string.replace('{','[').replace('}',']') # Replace mathematica's crazy exponent notati

[sage-support] Memory issues with maxima in SAGE

2009-08-15 Thread Mani chandra
Hi, I wrote a code in sage to construct a Low Dimensional model for the Magnetohydrodynamic equations to study dynamos etc... But the program crashes at different points on different machines with the following error: Traceback (most recent call last): File "./LowD_model.py", line 158, in

[sage-support] Interface MMA

2009-08-15 Thread Viny
Hello everybody! Thanks for your help. I'm realizing that i'm definitely really bad in sage, perhaps i'll be best in another life!!lol! This is a piece of a code for changing a symbolic mathematica list expression to a sage list expression: def mmatosage(mma_list): # Convert the mathematica

[sage-support] Re: Interface to mathematica

2009-08-15 Thread Viny
Hello everybody! Thanks for your help. I'm realizing that i'm definitely really bad in sage, perhaps i'll be best in another life!!lol! This is a piece of a code for changing a symbolic mathematica list expression to a sage list expression: def mmatosage(mma_list): # Convert the mathematica