[sage-support] Re: Slowness when trying to serve multiple notebooks from same server.

2009-10-06 Thread William Stein
On Tue, Oct 6, 2009 at 4:00 PM, Chris Seberino wrote: > > I have an Ubuntu 9.04 Xen virtual machine with 350 Mb RAM. > (from linode.com hosting services) > > I tried to have 7 people run notebooks off this server simultaneously > and it was painfully slow for each. > > I started the server with t

[sage-support] Re: Slowness when trying to serve multiple notebooks from same server.

2009-10-06 Thread Jason Grout
ma...@mendelu.cz wrote: > This is very very small RAM for 7 sage notebooks > > I think that this has been dicussed here or in sage-edu in January for example: http://groups.google.com/group/sage-support/browse_thread/thread/dc419de6b6c9aeac Jason -- Jason Grout --~--~-~--~~--

[sage-support] Re: Sage operations on a matrix containing constant vars fail

2009-10-06 Thread Robert Dodier
On Oct 5, 5:43 pm, Paul wrote: > sage: mat1 = Matrix(4,4,[[-e^-((1/2)*a*k),0,sin(-(1/2)*a*l),cos(-(1/2) > *a*l)],[0,e^(-(1/2)*a*k),-sin((1/2)*a*l),-cos((1/2)*a*l)],[-k*e^-((1/2) > *a*k),0,l*cos(-(1/2)*a*l),-l*sin(-(1/2)*a*l)],[0,k*e^(-(1/2)*a*k),l*cos > ((1/2)*a*l),-l*sin((1/2)*a*l)]]) Sage use

[sage-support] Re: Slowness when trying to serve multiple notebooks from same server.

2009-10-06 Thread ma...@mendelu.cz
This is very very small RAM for 7 sage notebooks I think that this has been dicussed here or in sage-edu in January Robert Marik On 7 říj, 01:00, Chris Seberino wrote: > I have an Ubuntu 9.04 Xen virtual machine with 350 Mb RAM. > (from linode.com hosting services) > > I tried to have 7 people

[sage-support] Slowness when trying to serve multiple notebooks from same server.

2009-10-06 Thread Chris Seberino
I have an Ubuntu 9.04 Xen virtual machine with 350 Mb RAM. (from linode.com hosting services) I tried to have 7 people run notebooks off this server simultaneously and it was painfully slow for each. I started the server with this command... sage -notebook accounts=True ulimit="-v 10" & (A

[sage-support] Re: sage notebook server won't start vmware windows version

2009-10-06 Thread William Stein
On Tue, Oct 6, 2009 at 3:11 PM, SG wrote: > > I have the same problem. I have been using Sage 3.2.3 on my Win XP SP2 > with no problem, but I tried installing 4.1.1 version and it does > exactly the same as what you see. Any help is appreciated..please > See the first question here: http://wiki

[sage-support] Re: sage notebook server won't start vmware windows version

2009-10-06 Thread SG
I have the same problem. I have been using Sage 3.2.3 on my Win XP SP2 with no problem, but I tried installing 4.1.1 version and it does exactly the same as what you see. Any help is appreciated..please SG On Oct 4, 7:34 pm, Steve wrote: > I started the sage virtual machine (4.1.1) using the VM

[sage-support] Re: latex

2009-10-06 Thread ma...@mendelu.cz
This \over is from Maxima. try a1=maxima.solve(x^2-x-3,x) R1=a1[0] R3=maxima.rhs(R1).sage() latex(R3) R. On 6 říj, 22:25, Mikie wrote: > Yes, your right.  I am latexing a value from maxima.solve(x^2-x-3,x). > Then maxima.rhs().  Then latexing the value.  It still gives me the > \over.  I am us

[sage-support] Re: regression and regresion lines:

2009-10-06 Thread Jaasiel Ornelas
Hey, thanks a lot. I was able to do it, though for my project the R^2 value constantly came out to . On Oct 6, 12:39 pm, Jason Grout wrote: > Jaasiel Ornelas wrote: > > Is there any way to calculate regression lines and regression (R^2) > > for a set of points in sage? > > I would probab

[sage-support] Re: latex

2009-10-06 Thread Mikie
Yes, your right. I am latexing a value from maxima.solve(x^2-x-3,x). Then maxima.rhs(). Then latexing the value. It still gives me the \over. I am using 3.4. When I assign it to a variable it works as below. If you would try a1=maxima.solve(x^2-x-3,x) R1=a1[0] R3=maxima.rhs[R1] latex(R3) prod

[sage-support] Re: regression and regresion lines:

2009-10-06 Thread Jason Grout
Jaasiel Ornelas wrote: > Is there any way to calculate regression lines and regression (R^2) > for a set of points in sage? I would probably first look at using scipy.stats. For example, a linear regression line can be found like this (from http://www2.warwick.ac.uk/fac/sci/moac/currentstuden

[sage-support] Re: latex

2009-10-06 Thread ma...@mendelu.cz
Hm, this is my Sage 4.1.1 a1=-(sqrt(13)-1)/2 latex(a1) output is -\frac{1}{2} \, \sqrt{13} + \frac{1}{2} You may have old version of Sage latex(-{{\sqrt[13]-1\over[2}}) produces error Robert Marik On 6 říj, 21:10, Mikie wrote: > If I have this a1=-(sqrt(13)-1)/2 in a variable, then latex(a1

[sage-support] latex

2009-10-06 Thread Mikie
If I have this a1=-(sqrt(13)-1)/2 in a variable, then latex(a1) it produces -{{\sqrt[13]-1\over[2}}. If I do latex(-{{\sqrt[13]-1\over[2}}) get \frac{1-\sqrt{13}}{2}, which is what I want. This is in a function. I need the latter. The \over does not do the pretty print. Is there a work around

[sage-support] regression and regresion lines:

2009-10-06 Thread Jaasiel Ornelas
Is there any way to calculate regression lines and regression (R^2) for a set of points in sage? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegr

[sage-support] Re: bug or feature? substitution in a function

2009-10-06 Thread john_perry_usm
Thanks; your answer explained it. I don't understand why Python works that way, but I'll bet there's a good reason. regards john perry On Oct 6, 12:14 pm, Mike Hansen wrote: > Hello, > > On Wed, Oct 7, 2009 at 12:08 AM, john_perry_usm wrote: > > sage: f(yvar = xvar) > > x^2 + y^2 > > sage: f({

[sage-support] Re: bug or feature? substitution in a function

2009-10-06 Thread john_perry_usm
Let me follow up: I don't get this either, and it may get to the heart of the distinction more easily. sage: f(yvar = 2) x^2 + y^2 sage: f(y = 2) x^2 + 4 regards john perry On Oct 6, 12:08 pm, john_perry_usm wrote: > Hi, > > Consider the following expression sequence: > > sage: var('y') > y >

[sage-support] Re: bug or feature? substitution in a function

2009-10-06 Thread Mike Hansen
Hello, On Wed, Oct 7, 2009 at 12:08 AM, john_perry_usm wrote: > sage: f(yvar = xvar) > x^2 + y^2 > sage: f({yvar:xvar}) > 2*x^2 > > I was under the impression that both forms of substitution should > return the same thing, but apparently not. Can someone explain the > distinction to me? Doing f

[sage-support] bug or feature? substitution in a function

2009-10-06 Thread john_perry_usm
Hi, Consider the following expression sequence: sage: var('y') y sage: f = x**2 + y**2 sage: yvar = y sage: xvar = x sage: f(yvar = xvar) x^2 + y^2 sage: f({yvar:xvar}) 2*x^2 I was under the impression that both forms of substitution should return the same thing, but apparently not. Can someone

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-06 Thread ma...@mendelu.cz
On 6 říj, 15:21, kcrisman wrote: ere. > > Thanks for taking the time to look into this! Thank you for your help. I posted the patch http://trac.sagemath.org/sage_trac/ticket/6479 which (I hope) fixes ic2 and bc2 commands. Results of tests have been updated and test related to bc2 has been add

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-06 Thread kcrisman
On Oct 6, 5:53 am, "ma...@mendelu.cz" wrote: > New version (slightly cleaner and more readable the previous one and > better in the sense that desolve with initial condition returns the > right-hand side only) is athttp://user.mendelu.cz/marik/temp/desolvers.py > > However - we still call ode2

[sage-support] Re: desolve - my missunderstanding or a bug in Sage?

2009-10-06 Thread ma...@mendelu.cz
New version (slightly cleaner and more readable the previous one and better in the sense that desolve with initial condition returns the right-hand side only) is at http://user.mendelu.cz/marik/temp/desolvers.py However - we still call ode2 two times when solving second order ode with initial con