[sage-support] Re: How to properly define a 'Sage-function'?

2009-08-19 Thread Jason Grout
Robert Bradshaw wrote: > > It's just syntactic sugar. To see what Sage transforms something like this into, you can use the preparse function: sage: preparse('f(y,z)=y^2+z') '__tmp__=var("y,z"); f = symbolic_expression(y**Integer(2)+z).function(y,z)' So the variables are first declared with

[sage-support] Re: How to properly define a 'Sage-function'?

2009-08-19 Thread Robert Bradshaw
On Wed, 19 Aug 2009, KvS wrote: > > > > On Aug 19, 11:06 pm, Robert Bradshaw > wrote: >> On Wed, 19 Aug 2009, KvS wrote: >> >>> Dear all, >> >>> just started exploring Sage (via sagenb.org), I'm very enthousiastic >>> about the concept and am very eager to leave 'black box' Mathematica >>> asap.

[sage-support] Re: How to properly define a 'Sage-function'?

2009-08-19 Thread KvS
On Aug 19, 11:06 pm, Robert Bradshaw wrote: > On Wed, 19 Aug 2009, KvS wrote: > > > Dear all, > > > just started exploring Sage (via sagenb.org), I'm very enthousiastic > > about the concept and am very eager to leave 'black box' Mathematica > > asap. One issue however I can't seem to get my he

[sage-support] Re: How to properly define a 'Sage-function'?

2009-08-19 Thread Robert Bradshaw
On Wed, 19 Aug 2009, KvS wrote: > > Dear all, > > just started exploring Sage (via sagenb.org), I'm very enthousiastic > about the concept and am very eager to leave 'black box' Mathematica > asap. One issue however I can't seem to get my head around, namely > what exactly is the 'right' way to t

[sage-support] How to properly define a 'Sage-function'?

2009-08-19 Thread KvS
Dear all, just started exploring Sage (via sagenb.org), I'm very enthousiastic about the concept and am very eager to leave 'black box' Mathematica asap. One issue however I can't seem to get my head around, namely what exactly is the 'right' way to think of and work with Sage- functions (as oppo

[sage-support] Re: Error while installing sage 4.1.1 on server for multi users.

2009-08-19 Thread mrotsliah
I have been trying to set up this server so that it will mount user information from either another place on the computer or from another server all together. In the end, I hope every user will be able to use sage with out error. Bob (me) is a super user whose /home/bob is mounted from somewhere

[sage-support] Re: Error while installing sage 4.1.1 on server for multi users.

2009-08-19 Thread mrotsliah
I am running Ubuntu Server 8.04. I tried this before an another server with Sage 4.0 using those instructions, and it worked. But 4.1.1 is not working. > Hmm... the error looks suspicious. What operating system are you > using? Which Linux distribution? The instructions at > > http://www.sagem

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

2009-08-19 Thread Ondrej Certik
On Mon, Aug 17, 2009 at 11:06 AM, William Stein wrote: > > On Mon, Aug 17, 2009 at 6:27 AM, Mani chandra wrote: >> >> William Stein wrote: >>> On Mon, Aug 17, 2009 at 2:26 AM, Juan Jose >>> Garcia-Ripoll wrote: >>> On Mon, Aug 17, 2009 at 10:57 AM, William Stein wrote: > Note that Sa

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

2009-08-19 Thread William Stein
On Wed, Aug 19, 2009 at 2:10 AM, 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 mail, it's the

[sage-support] Re: sage server setup support sought

2009-08-19 Thread William Stein
On Wed, Aug 19, 2009 at 7:10 AM, John Cremona wrote: > > Progress report. > > After succesfully logging into my own notebook as admin, I started to > set up a few user accounts.  I followed the instructions in the > notebook? docstring: > >          accounts      -- (default: False) if True, any v

[sage-support] Re: Load Maxima

2009-08-19 Thread Mikie
Thanks, for the help. Here are the functions I created and they work. I needed one that solved equations for a floating pt. solution and a definite integral and work in a Python script. -- def MaxIntegrate(x,y,beg,end_): y1=maxima(x);x1=maxima(y) a5=maxi

[sage-support] Re: sage server setup support sought

2009-08-19 Thread John Cremona
One more thing I just noticed. When I run notebook(...) to start up the notebook server, the last line displayed is https://selmer.warwick.ac.uk:8000/?startup_token=634498ad5f3559f3b0121beeb6e0beb8: No such file or directory and this may be a clue to the problem. On 19 Aug, 15:10, John Cremona

[sage-support] Re: sage server setup support sought

2009-08-19 Thread John Cremona
Progress report. After succesfully logging into my own notebook as admin, I started to set up a few user accounts. I followed the instructions in the notebook? docstring: accounts -- (default: False) if True, any visitor to the website will be able to

[sage-support] Re: sage server setup support sought

2009-08-19 Thread John Cremona
I now can connect to that sage server (running on ubuntu, by the way, and administered by Bill Hart and myself) but this is from another machine on the university network so I'll have to try form home too. I started the server using exactly notebook (address="selmer.warwick.ac.uk", port=8000, se

[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 mail, it's the symb

[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 with maxima than Mani Chandra > few days ago and I decid

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

2009-08-19 Thread Viny
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 mail, it's the symbolic answer expression of this linear system with m

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

2009-08-19 Thread Robert Bradshaw
On Aug 19, 2009, at 12:48 AM, Viny wrote: > > Hi ! > > phi, v, u, Cxy are functions of (x,y). I use the command sage_eval > (string, locals = { 'E':E, 'u':u, 'v':u, 'phi'=phi, ..}). string > it's the expression. It's the only way i found for chang it to > expression but it generate an error.

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

2009-08-19 Thread Viny
Hi ! phi, v, u, Cxy are functions of (x,y). I use the command sage_eval (string, locals = { 'E':E, 'u':u, 'v':u, 'phi'=phi, ..}). string it's the expression. It's the only way i found for chang it to expression but it generate an error. Perhaps this come from the function the eval of phi[x,y

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

2009-08-19 Thread Mani chandra
Hi, Sage now runs fine when recompiled with a much larger memory limit for maxima. (Passing the command through maxima() didn't work). Thanks to everybody for helping out. Regards, Mani chandra --~--~-~--~~~---~--~~ To post to this group, send email to sage