Fwd: [sage-support] Jacobian Element over HyperElliptic Curves

2009-10-29 Thread William Stein
-- Forwarded message -- From: Nick Alexander ncalexan...@gmail.com Date: Wed, Oct 28, 2009 at 10:56 PM Subject: Re: [sage-support] Jacobian Element over HyperElliptic Curves To: William Stein wst...@gmail.com, Daniel Ribeiro dan...@gmail.com (x^2 + 23*x + 15, y + 18*x + 3)

[sage-support] Re: Problem with matrix

2009-10-29 Thread Jo
That worked perfectly! Thank guys. On Oct 29, 1:39 am, William Stein wst...@gmail.com wrote: On Wed, Oct 28, 2009 at 9:08 PM, Jo jorat1...@gmail.com wrote: Hi, I need to replace some part of a matrix with an another matrix. I tried to use matrix.set_block, but I got an error. I tried

[sage-support] Re: import and global namespace

2009-10-29 Thread zeliboba
hmm... the question was different: attach makes variable global, import does not. is it bug or feature? On Oct 28, 5:52 pm, William Stein wst...@gmail.com wrote: On Wed, Oct 28, 2009 at 5:16 AM, zeliboba zelibo...@googlemail.com wrote: dear all in documentation for var() it is stated

[sage-support] Re: deprecation warnings related to matplotlibrc on sage 4.2

2009-10-29 Thread Stan Schymanski
Thanks, kcrisman and Jason, that worked. Stan kcrisman wrote: I think it's in home/sage/ - kcrisman On Oct 28, 1:06 pm, Stan Schymanski schym...@gmail.com wrote: Thanks, Jason! Where do I find it? It's not in home nor in home/.matplotlib/. Stan Jason Grout wrote: Stan

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread David
Is there some way to delete user accounts as administrator? When I log in as admin, I see options to create an account and to suspend an account, but not to delete one. -- David --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Some basic question of new user

2009-10-29 Thread Ross
hi everyone I want to translate some matlab code into sage but i get some problem here are the matlab code if omega=-yo uno=1; elseif omega=-yo omega=0 uno=omega/-yo; else uno=0; end i read the Loops, Functions, Control Statements, and Comparisons in Tutorial and

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread David Guichard
Thanks Robert--works fine. I sort of answered my question about simultaneous connections: apparently one account in the server pool can be used by two users--it appears to just log in twice as that user. There must be a good reason to have more users in the server pool, though, right? What is

[sage-support] Re: Some basic question of new user

2009-10-29 Thread Simon King
Dear Ross, On 29 Okt., 15:29, Ross r76...@gmail.com wrote: [...] i read the Loops, Functions, Control Statements, and Comparisons in Tutorial and try to use the if in sage here is the example for i in range(15):        if gcd(i,15) == 1:            print(i) and try a=5 b=3 d=100

[sage-support] Re: Some basic question of new user

2009-10-29 Thread Simon King
Hi again! On 29 Okt., 15:29, Ross r76...@gmail.com wrote: hi everyone I want to translate some matlab code into sage but i get some problem here are the matlab code if omega=-yo         uno=1;     elseif omega=-yo omega=0         uno=omega/-yo;     else uno=0;     end [...] Q:    

[sage-support] Re: Some basic question of new user

2009-10-29 Thread Jason Grout
Ross wrote: Q: 1.If i have this kind of question what can i read first? I also find the other documentation for Python incredibly useful: http://docs.python.org/ In particular, for language syntax, see the Language Reference http://docs.python.org/reference/index.html. For your

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread Jason Grout
David Guichard wrote: Thanks Robert--works fine. I sort of answered my question about simultaneous connections: apparently one account in the server pool can be used by two users--it appears to just log in twice as that user. There must be a good reason to have more users in the server

[sage-support] Finding a potential function in Sage

2009-10-29 Thread Jason Grout
I'm writing a worksheet for calc 3, and trying to figure out how to get Sage to easily find the potential function, given a gradient. In other words, I'm trying to duplicate the following from Mathematica: In[7]:= DSolve[{D[f[x, y], x] == x-y, D[f[x, y], y] == -x+y^2}, f[x, y], {x, y}] //

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 9:05 AM, Jason Grout jason-s...@creativetrax.com wrote: David Guichard wrote: Thanks Robert--works fine. I sort of answered my question about simultaneous connections: apparently one account in the server pool can be used by two users--it appears to just log in

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 9:52 AM, William Stein wst...@gmail.com wrote: On Thu, Oct 29, 2009 at 9:05 AM, Jason Grout jason-s...@creativetrax.com wrote: David Guichard wrote: Thanks Robert--works fine. I sort of answered my question about simultaneous connections: apparently one account in

[sage-support] Re: Finding a potential function in Sage

2009-10-29 Thread David Joyner
Its exact, so you can do this: sage: x = var(x) sage: y = function(y,x) sage: M = x-y sage: N = -x+y^2 sage: desolve(diff(y,x)==-M/N,y) 1/2*x^2 + 1/3*y(x)^3 - x*y(x) == c On Thu, Oct 29, 2009 at 12:51 PM, Jason Grout jason-s...@creativetrax.com wrote: I'm writing a worksheet for calc 3, and

[sage-support] Re: import and global namespace

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 2:09 AM, zeliboba zelibo...@googlemail.com wrote: hmm... the question was different: attach makes variable global, import does not. is it bug or feature? Feature. When you use attach, Sage executes the code then and there in the scope of your current file. When use

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread Jason Grout
William Stein wrote: On Thu, Oct 29, 2009 at 9:05 AM, Jason Grout jason-s...@creativetrax.com wrote: David Guichard wrote: Thanks Robert--works fine. I sort of answered my question about simultaneous connections: apparently one account in the server pool can be used by two users--it

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 10:29 AM, Jason Grout jason-s...@creativetrax.com wrote: hmmm...instead of world-writeable, you could also make the tmp directory group-writeable and make the server and worksheet members of the same group. Given that the only users in the virtual machine are the

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread Jason Grout
William Stein wrote: Speaking of startup time, I'm sad that numpy, matplotlib, etc., all get imported by default again, hence sage -startuptime is bad again. We need to stop having all those slow-to-import modules get imported by default once and for all (by adding and keeping doctests

[sage-support] Magma and hyperelliptic curves

2009-10-29 Thread David Holmes
Hi, I apologise if this question has already been answered, I was unable to find a solution when i searched. I am trying to use sage to compute with divisors on hyperelliptic curves (not only of genus 2). I know how to do this in magma, but it seems from the manual that the riemann-roch

[sage-support] Re: Magma and hyperelliptic curves

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 11:02 AM, David Holmes 26davi...@googlemail.com wrote: Hi, I apologise if this question has already been answered, I was unable to find a solution when i searched. I am trying to use sage to compute with divisors on hyperelliptic curves (not only of genus 2). I know

[sage-support] Re: sqrt(16)

2009-10-29 Thread Jason Grout
Burcin Erocal wrote: I have an idea how to hold symbolic expressions so they are not evaluated automatically, but it will be at least a week before I can test it and submit a patch. Burcin, A friend I just today were talking about Sage getting in the near future a hold parameter, so that

[sage-support] Re: Finding a potential function in Sage

2009-10-29 Thread Jason Grout
David Joyner wrote: Its exact, so you can do this: sage: x = var(x) sage: y = function(y,x) sage: M = x-y sage: N = -x+y^2 sage: desolve(diff(y,x)==-M/N,y) 1/2*x^2 + 1/3*y(x)^3 - x*y(x) == c Ah, right; thanks for the great reply. However, if I define y as a function of x, then

[sage-support] Re: Finding a potential function in Sage

2009-10-29 Thread Jason Grout
Jason Grout wrote: David Joyner wrote: Its exact, so you can do this: sage: x = var(x) sage: y = function(y,x) sage: M = x-y sage: N = -x+y^2 sage: desolve(diff(y,x)==-M/N,y) 1/2*x^2 + 1/3*y(x)^3 - x*y(x) == c Ah, right; thanks for the great reply. However, if I define y as a

[sage-support] Sage 4.2 Lightweight LiveCD is ready to download.

2009-10-29 Thread Lucio Lastra
Hi all, you can download Sage 4.2 Liveweight LiveCD at: http://sage.math.washington.edu/home/luciolastra/sagelwlcd/latest/ Any feedback is appreciated! Greetings, Lucio --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Reading CSV Files From Databases

2009-10-29 Thread JJWMac
Background I am learning to use sage and to integrate it into LaTeX, primarily to create problems with answers already completed. I am at the same time very much interested in creating problem statements that draw (randomly) on databases of values. For example, a template problem statement

[sage-support] Re: Sage 4.2 Lightweight LiveCD is ready to download.

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 1:45 PM, Lucio Lastra luciolas...@gmail.com wrote: Hi all, you can download Sage 4.2 Liveweight LiveCD at: http://sage.math.washington.edu/home/luciolastra/sagelwlcd/latest/ Any feedback is appreciated! Greetings, Lucio I'm very curious -- Could you make a

[sage-support] Re: Reading CSV Files From Databases

2009-10-29 Thread Joel B. Mohler
On Thursday 29 October 2009 05:10:38 pm JJWMac wrote: Back in February, Marshall Hampton posted in response to a query about reading a csv file. I am tempted to open a ticket in trac for some sort of read_csv command, which might behave like the following (NOTE: this is

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread Dr. David Kirkby
David wrote: Things are looking up here. I think I'm having some firewall issues with high port numbers. Is there any way to allow sage to open port 443 without running as root? This would be easier than trying to get the computer center to open up a new port campus-wide. If I run the

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 10:48 AM, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: Speaking of startup time, I'm sad that numpy, matplotlib, etc., all get imported by default again, hence  sage -startuptime is bad again.   We need to stop having all those slow-to-import

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread Jason Grout
William Stein wrote: Nothing is forbidden yet, but we should try not to load whatever we can get away with not loading in order to improve the import time. Well, it sounds like you are forbidding matplotlib and numpy being loaded at startup, if you're making a doctest for that. Despite

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 3:27 PM, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: Nothing is forbidden yet, but we should try not to load whatever we can get away with not loading in order to improve the import time. Well, it sounds like you are forbidding matplotlib and

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread Robert Bradshaw
On Oct 29, 2009, at 3:39 PM, William Stein wrote: On Thu, Oct 29, 2009 at 3:27 PM, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: Nothing is forbidden yet, but we should try not to load whatever we can get away with not loading in order to improve the import time.

[sage-support] Re: Magma and hyperelliptic curves

2009-10-29 Thread David Holmes
Thank you, this seems to help. David On Oct 29, 6:54 pm, William Stein wst...@gmail.com wrote: On Thu, Oct 29, 2009 at 11:02 AM, David Holmes 26davi...@googlemail.com wrote: Hi, I apologise if this question has already been answered, I was unable to find a solution when i searched.

[sage-support] Re: Finding a potential function in Sage

2009-10-29 Thread Jason Grout
Jason Grout wrote: David Joyner wrote: On Thu, Oct 29, 2009 at 3:33 PM, Jason Grout jason-s...@creativetrax.com wrote: David Joyner wrote: Its exact, so you can do this: sage: x = var(x) sage: y = function(y,x) sage: M = x-y sage: N = -x+y^2 sage: desolve(diff(y,x)==-M/N,y) 1/2*x^2 +

[sage-support] Re: [david.r.guich...@gmail.com: Re: sage server]

2009-10-29 Thread William Stein
On Thu, Oct 29, 2009 at 3:44 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Oct 29, 2009, at 3:39 PM, William Stein wrote: On Thu, Oct 29, 2009 at 3:27 PM, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: Nothing is forbidden yet, but we should try not to

[sage-support] Re: Finding a potential function in Sage

2009-10-29 Thread Jason Grout
Jason Grout wrote: I'll probably just write a short function to do that, based on the algorithm the students have seen. It's probably good for them that way anyway. So I did this now: One last post on this thread...I modified this again. If you're teaching calc 3, you might find

[sage-support] Re: Finding a potential function in Sage

2009-10-29 Thread David Joyner
On Thu, Oct 29, 2009 at 6:57 PM, Jason Grout jason-s...@creativetrax.com wrote: Jason Grout wrote: I'll probably just write a short function to do that, based on the algorithm the students have seen.  It's probably good for them that way anyway. So I did this now: One last post on this

[sage-support] Re: Sage 4.2 Lightweight LiveCD is ready to download.

2009-10-29 Thread CalcPage
BTW, The Sage 4.1.1 CD is very nice! HTH, A. Jorge Garcia _http://calcpage.tripod.com_ (http://calcpage.tripod.com/) Teacher Professor Applied Mathematics, Physics Computer Science Baldwin Senior High School Nassau Community College In a message dated 10/29/2009 5:32:59 P.M. Eastern

[sage-support] numerical integration of bessel_J functions

2009-10-29 Thread svanshaar
I am trying to numerically evaluate the integral of bessel functions. I've tried constructing it various ways. The one that makes most sense to me is: a=var('a') f=bessel_J(1,a)*bessel_J(0,0.1*a)*e^(-5*a) f.numerical_integral(a,0,infinity) I get the error: Cannot evaluate symbolic expression

[sage-support] Re: numerical integration of bessel_J functions

2009-10-29 Thread Jason Grout
svanshaar wrote: I am trying to numerically evaluate the integral of bessel functions. I've tried constructing it various ways. The one that makes most sense to me is: a=var('a') f=bessel_J(1,a)*bessel_J(0,0.1*a)*e^(-5*a) f.numerical_integral(a,0,infinity) I get the error: Cannot

[sage-support] Re: Sage 4.2 Lightweight LiveCD is ready to download.

2009-10-29 Thread Minh Nguyen
Hi Lucio, On Fri, Oct 30, 2009 at 7:45 AM, Lucio Lastra luciolas...@gmail.com wrote: Hi all, you can download Sage 4.2 Liveweight LiveCD at: http://sage.math.washington.edu/home/luciolastra/sagelwlcd/latest/ Thank you very much for this. I have updated the SageMath Facebook and twitter