[sage-support] sage_eval

2010-02-15 Thread Viny
I'm working on two versions of sage: sage4.3.1 and sage4.1.1. The evaluation sage_stuff = sage_eval(string,locals=dico,preparse='False') where string contains a list of symbolic expressions, dico it's my dictionnary of variables, gives an error type with sage4.3.1 but work well with the version s

[sage-support] Re: change a string to sage expression by sage_eval

2009-08-19 Thread Viny
Thank you On 19 août, 11:10, Viny wrote: > I have got the same problem of memory with maxima than Mani Chandra > few days ago and I decided to make an interface to mathematica for > solving the symbolic linear system which demand too much memory. The > expression in my former ma

[sage-support] Re: change a string to sage expression by sage_eval

2009-08-19 Thread Viny
Hi, Thank you, the old idea you gave me to change '[' by ')' and ']' by ')' in the mathematica string is working. I'm trying now to change the limit memory of maxima. On 19 août, 11:10, Viny wrote: > I have got the same problem of memory wi

[sage-support] Re: change a string to sage expression by sage_eval

2009-08-19 Thread Viny
and english very well i'm from France.Is there something to change in maxima source files or a function to put in the code for reallocation of memory?? Is it possible to put this function in a .sage file writting with python? Thankx On 19 août, 10:22, Robert Bradshaw wrote: > On Aug

[sage-support] Re: change a string to sage expression by sage_eval

2009-08-19 Thread Viny
haps this come from the function the eval of phi[x,y], v[x,y], On 18 août, 11:02, Robert Bradshaw wrote: > On Aug 17, 2009, at 3:45 AM, Viny wrote: > > > > > Hello! > > > Is it possible to have the equivalent sage expression of the following > > string, b

[sage-support] change a string to sage expression by sage_eval

2009-08-17 Thread Viny
u[0, 0] + (ni*v[0, 0])/ E** phi[0, 0])/epsr) + (16*(Cxy[0, 1])] Cheers!! Viny --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.co

[sage-support] Re: Interface to mathematica

2009-08-16 Thread Viny
200 201 /usr/local/src/sage-4.0.1/local/lib/python2.5/site-packages/sage/ all.pyc in () TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'str' On 15 août, 15:06, thelamecamel wrote: > Hi Viny, > > The following works for me: > >

[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
on > > wrote: > > > > You probably have to pass in the "dx" as a local variable, i.e. do > > > something like > > > > sage_stuff = sage_eval(expr, locals = {'dx' = 'dx'}) > > > It's {'dx':'dx'} or

[sage-support] Re: Interface to mathematica

2009-08-14 Thread Viny
error NameError: name 'dx' is not defined Even when i put in the begining of my function var ("dx"), the problem stay. Thanks again On 14 août, 04:04, thelamecamel wrote: > Hi Viny, > > Sage's mathematica support at present seems to be geared towards > sending dat

[sage-support] A big problem

2009-08-14 Thread Viny
Helle everybody Somebody can giv me an idea: the function change a mathematica style to a python one string = repr(mlist) # Convert mathematica-style {} to python style [] string = string.replace('{','(').replace('}',')') --> 488 return eval(string) TypeError: '

[sage-support] to print a mathematica element in sage element

2009-08-13 Thread Viny
Hi! I'm a beginer in sage-python I have done in my sage-python program a function which compute with mathematica the hessian H and the linear resolution of H*B. This function return the result X as a mathematica Element. But I can't manipulate easily this mathematica element. How can I print this

[sage-support] Re: Interface to mathematica

2009-08-13 Thread Viny
On 13 août, 12:26, Viny wrote: > On 13 août, 10:47, Viny wrote: > > > Hi, > > > I have a problem of memory into maxima when it performs a symbolic > > expression of an hessian matrix. This symbolic expression of the > > hessian seems to be too big. My sag

[sage-support] Re: Interface to mathematica

2009-08-13 Thread Viny
On 13 août, 10:47, Viny wrote: > Hi, > > I have a problem of memory into maxima when it performs a symbolic > expression of an hessian matrix. This symbolic expression of the > hessian seems to be too big. My sage program is written using python. > And i want to compute the h

[sage-support] Interface to mathematica

2009-08-13 Thread Viny
Hi, I have a problem of memory into maxima when it performs a symbolic expression of an hessian matrix. This symbolic expression of the hessian seems to be too big. My sage program is written using python. And i want to compute the hessian matrix with mathematica 6.0 in my sage file. I need to co

[sage-support] Problem of memory

2009-08-12 Thread Viny
Hello, I'm a beginner in python and sage. I'm trying to solve a system of ODE by the newton method with python by sage. But i have a problem of memory with Lisp or Maxima when the hessian matrix is calculated. The process doesn't use the whole 12 giga RAM memory of my 64bits linux system and cra

[sage-support] Re: A problem of memory

2009-08-11 Thread Viny
g/sage-main/file/285a89ed5dc7/sage/gsl/ode.pyx#l1 > Another is to try to precompute the hessian and pass it into your > program as an argument. This way your program does not call > maxima (assuming that is the cause of your problem). > > How big is the system? > > On Tue, Au

[sage-support] A problem of memory

2009-08-11 Thread Viny
Hello, I'm a beginner in python and sage. I'm trying to solve a system of ODE by the newton method with python by sage. But i have a problem of memory with Lisp or Maxima when the hessian matrix is calculated. The process doesn't use the whole 12 giga RAM memory of my 64bits linux system and cra

[sage-support] Re: Get sage.4.0.2

2009-08-11 Thread Viny
On 11 août, 11:55, Minh Nguyen wrote: > Hi, > > > > On Tue, Aug 11, 2009 at 7:51 PM, Viny wrote: > > > On 11 août, 11:40, Minh Nguyen wrote: > >> Hi, > > >> On Tue, Aug 11, 2009 at 7:34 PM, Viny wrote: > > >> > Hello! > > >

[sage-support] Get sage.4.0.2

2009-08-11 Thread Viny
Hello! I'm a beginner in python and i want to use sage. But Where can i get sage.4.0.2 for 64bits. Thanks --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr