Re: Fwd: [sage-support] Re: including sage library

2012-04-30 Thread P Purkayastha
The problem you are running into is that when you are on the command line, all the needed functions are loaded (this is a reason why the Sage startup takes time). When you are writing your own library, you need to import modules that you need. You can do that by simply adding from sage.all im

Re: Fwd: [sage-support] Re: including sage library

2012-04-30 Thread yogesh gupta
thanks for your help. your given method is perfectly working. but now i have another problem. i have another library which i want to add def length(w,res,ll,ul,p): from sage.symbolic.ring import SR x,y=SR.var('x y') z=solve(w,y)[0].right() q=w.diff(x) r=w.diff(y) if(

[sage-support] Re: user quota

2012-04-30 Thread Jason Grout
On 4/30/12 6:55 PM, rych wrote: How to set up user quota of memory and CPU % on a sage notebook server installation? Not for the sageslave linux users, but for the registered users of Sage web service? You mean you want one user to have a certain quota of memory and cpu, and another user to ha

[sage-support] user quota

2012-04-30 Thread rych
How to set up user quota of memory and CPU % on a sage notebook server installation? Not for the sageslave linux users, but for the registered users of Sage web service? Thanks, Igor -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

[sage-support] Re: can't install

2012-04-30 Thread William Stein
On Mon, Apr 30, 2012 at 11:57 AM, brian mahan wrote: > I have Ubuntu 11.10 on an old laptop is use for school. I want to learn sage > to avoid buying matlab. > I have tried all the commands to run this, but just can't see what I'm doing > wrong. I downloaded > thehttp://boxen.math.washington.edu/h

Re: Fwd: [sage-support] Re: including sage library

2012-04-30 Thread P Purkayastha
I tested by defining the function in the notebook and it worked. The reason why it works in the notebook is because Sage preparses the input that you provide it. By default it preparses x to make it a symbolic variable. I am just surprised that var() does not work if you make your function a li

Re: [sage-support] Re: including sage library

2012-04-30 Thread yogesh gupta
thanks for reply. first method is worked perfectly. But in the second method it says "global name var is not defined". and i want to implement the libraries in the fashion so that i have to pass as minimum as possible arguments. so plz help me. On Mon, Apr 30, 2012 at 7:37 PM, P Purkayastha wrote

[sage-support] Re: including sage library

2012-04-30 Thread P Purkayastha
On Monday, April 30, 2012 8:11:29 PM UTC+8, yogesh wrote: > > Hello Sir, > > def symmetry(w): > if(w==w(x=-x,y=-y)): > print "symmetrical about origin" > else: > print "not symmetrical about origin" > > if(w==w(x=-x)): > print "symmetric

[sage-support] including sage library

2012-04-30 Thread yogesh
Hello Sir, def symmetry(w): if(w==w(x=-x,y=-y)): print "symmetrical about origin" else: print "not symmetrical about origin" if(w==w(x=-x)): print "symmetrical about y axis" else: print "not symmetrical about y axis" if(w=