Re: [sage-support] Sage Speed Issues

2013-06-10 Thread William Stein
On Jun 10, 2013 4:56 PM, "Asad Akhlaq" wrote: > > Hi, > > I am expanding the Taylor series for an 8-dimensional exponential function and Sage is taking too much time as the the number of terms are increased. I am using Sage in notebook through VirtualBox. If I use Sage through terminal on my own P

[sage-support] Sage Speed Issues

2013-06-10 Thread Asad Akhlaq
Hi, I am expanding the Taylor series for an 8-dimensional exponential function and Sage is taking too much time as the the number of terms are increased. I am using Sage in notebook through VirtualBox. If I use Sage through terminal on my own PC, will it faster its execution? Any other suggesti

Re: [sage-support] Plot the zeros of a complex function

2013-06-10 Thread computational . group
Looks great, thanks for all the help! I'll see about messing around with complex_plot a bit to support pure zero plots, if it amounts to something I'll get back in touch... On Monday, June 10, 2013 11:55:28 AM UTC-5, William wrote: > > Try this: > > z,n = var('z,n') > > @interact > def _(f = (

Re: [sage-support] Plot the zeros of a complex function

2013-06-10 Thread William Stein
Try this: z,n = var('z,n') @interact def _(f = ((z+1)^n-abs(z^n+1)), n = (2..10), B=(2..10)): f = f.subs(n=n) show(f) show(complex_plot(f, (-B,B), (-B,B))) On Mon, Jun 10, 2013 at 9:42 AM, wrote: > Okay, so the following works: > > > z = var('z') > n = 2 > @interact > def _(f = ((z

Re: [sage-support] Plot the zeros of a complex function

2013-06-10 Thread computational . group
Okay, so the following works: z = var('z') n = 2 @interact def _(f = ((z+1)^n-abs(z^n+1)), B=(2..10)): show(complex_plot(f, (-B,B), (-B,B))) But the following doesn't: z = var('z') @interact def _(f = ((z+1)^n-abs(z^n+1)), n = (2..10), B=(2..10)): show(complex_plot(f, (-B,B), (-B,B)))

Re: [sage-support] Plot the zeros of a complex function

2013-06-10 Thread William Stein
On Mon, Jun 10, 2013 at 9:24 AM, wrote: > Ah, that's unfortunate. Might be a fun summer project to try to implement, > if I knew where to start. 1. http://www.sagemath.org/development.html 2. SAGE_ROOT/devel/sage/sage/plot/complex_plot.pyx which I found by doing search_src('complex_plot') > O

Re: [sage-support] Plot the zeros of a complex function

2013-06-10 Thread computational . group
Ah, that's unfortunate. Might be a fun summer project to try to implement, if I knew where to start. On another note: I really like the @interact annotation. I'm messing around with it, because I would like to add another parameter to my plot - an integer representing an index in a discrete fam

Re: [sage-support] Plot the zeros of a complex function

2013-06-10 Thread William Stein
On Mon, Jun 10, 2013 at 9:09 AM, wrote: > Thanks, this is exactly what I was looking for! > > In fact, I had tried out complex_plot but I must have been using a different > color function or something, because the roots were much less apparent to > me. Not sure why I couldn't figure this out on m

Re: [sage-support] Plot the zeros of a complex function

2013-06-10 Thread computational . group
Thanks, this is exactly what I was looking for! In fact, I had tried out complex_plot but I must have been using a different color function or something, because the roots were much less apparent to me. Not sure why I couldn't figure this out on my own... I suppose I have two follow-up question

Re: [sage-support] Re: Plot zeros of complex function

2013-06-10 Thread El suisse
can replace z = a + bj and then solve the system of nonlinear equations Re { z} = 0 and Im {z} = 0 2013/6/10 Volker Braun > Did you try e.g. complex_plot(x-abs(x), (-1,1), (-1,1)) > > The plot contains more information than just the region of zeroes. Usually > the phase information is quite int

Re: [sage-support] Plot the zeros of a complex function

2013-06-10 Thread William Stein
On Sun, Jun 9, 2013 at 3:25 PM, wrote: > Suppose I have a complex function f(z) with a continuous family of zeros > (e.g., f(z)=z-|z|) > > Is there a way to easily plot the set of zeros of f in sage, regardless of > how complicated the function f is? > You might find complex_plot useful. For

Re: [sage-support] multiple instances of sage -notebook

2013-06-10 Thread William Stein
On Jun 10, 2013 7:16 AM, "Ursula Whitcher" wrote: > > On Friday, June 7, 2013 12:18:49 PM UTC-5, William wrote: >> >> >> By the way, I'm curious what features are missing from >> https://cloud.sagemath.com that you might need for it to work for your >> project? For example, what extra packages w

Re: [sage-support] multiple instances of sage -notebook

2013-06-10 Thread Ursula Whitcher
Can folks help me troubleshoot the password problem described below? I installed Sage in my personal directory, and set the permissions so that the two other members of my research group can also run my copy of Sage. I ran ./sage -notebook , and created an admin account and a personal account o

Re: [sage-support] multiple instances of sage -notebook

2013-06-10 Thread Ursula Whitcher
On Friday, June 7, 2013 12:18:49 PM UTC-5, William wrote: > > > By the way, I'm curious what features are missing from > https://cloud.sagemath.com that you might need for it to work for your > project? For example, what extra packages would you need, > documentation, etc.? Too many bugs (if

[sage-support] Re: Getting __name__ (or similar) of load-ed script?

2013-06-10 Thread Volker Braun
The load() and attach()ed files should obviously be treated the same (except for the reloading part), and offer a unified interface. Right now that is IMHO a lot of spaghetti code that grew over the years. The fact that even simple patches don't get reviewed (http://trac.sagemath.org/14523) did

[sage-support] Re: Plot zeros of complex function

2013-06-10 Thread Volker Braun
Did you try e.g. complex_plot(x-abs(x), (-1,1), (-1,1)) The plot contains more information than just the region of zeroes. Usually the phase information is quite interesting. I don't think we have a function to just give you the zeroes (which is numerically difficult) On Sunday, June 9, 2013