[sage-support] Re: questions (complex function and Poncare sums)

2009-07-07 Thread Ahmed Fasih
Hi, I don't know what a modular group is but Python has some default support for complex numbers (e.g., you can type in 1+2j in just your standard Python interpreter and it will work), but all kinds of nice things are available in Sage: sage: z=1+2j sage: type(z) sage: C=ComplexField(256) sage:

[sage-support] questions (complex function and Poncare sums)

2009-07-07 Thread crownea...@gmail.com
1. I would like to define a complex valued function z -> f(z). For example f(z) = Im(z)^2. How do I define z so it is represented as a complex float? 2. I would like to approximate a Poncare sum over the modular group. Can you give me a reference for computing something like \sum_{\gamma \in \G

[sage-support] Re: Running long processes on the server

2009-07-07 Thread Ethan Van Andel
On Jul 7, 3:52 pm, William Stein wrote: > On Tue, Jul 7, 2009 at 12:29 PM, Ethan Van Andel wrote: > > > I am running some image generation stuff over the sagenb server. They > > can take a LONG time (2.5 hours or more). I find that often when I > > check on the process, it has been interupted w

[sage-support] Re: Running long processes on the server

2009-07-07 Thread William Stein
On Tue, Jul 7, 2009 at 12:29 PM, Ethan Van Andel wrote: > > I am running some image generation stuff over the sagenb server. They > can take a LONG time (2.5 hours or more). I find that often when I > check on the process, it has been interupted with an error message > like this: > > /home/sage/sa

[sage-support] Re: Sharing a notebook

2009-07-07 Thread William Stein
On Tue, Jul 7, 2009 at 12:24 PM, Kevin Horton wrote: > > On 7 Jul 2009, at 14:47, William Stein wrote: > >> On Tue, Jul 7, 2009 at 3:04 AM, Robert >> Bradshaw wrote: >>> >>> If >>> two people are logged in under the same username, and trying to edit >>> the same worksheet, things may get badly out

[sage-support] Re: Deleting notebook DATA file leads to error page

2009-07-07 Thread Martin Mereb
I don´t know if this applies. But most of my worksheets in sagenb.org seem to have lost. (or at least they don´t show nothing, I´m still not sure if it is a new format or what) I haven´t used it for a couple of months. thanks tincho On Tue, Jul 7, 2009 at 3:38 PM, William Stein wrote: > > On T

[sage-support] Running long processes on the server

2009-07-07 Thread Ethan Van Andel
I am running some image generation stuff over the sagenb server. They can take a LONG time (2.5 hours or more). I find that often when I check on the process, it has been interupted with an error message like this: /home/sage/sage_install/sage/local/bin/sage-sage: line 349: 3500 Killed python "$

[sage-support] Re: Sharing a notebook

2009-07-07 Thread Kevin Horton
On 7 Jul 2009, at 14:47, William Stein wrote: > On Tue, Jul 7, 2009 at 3:04 AM, Robert > Bradshaw wrote: >> >> If >> two people are logged in under the same username, and trying to edit >> the same worksheet, things may get badly out of sync and funny stuff >> might start to happen (i.e. concurre

[sage-support] Re: Sharing a notebook

2009-07-07 Thread William Stein
On Tue, Jul 7, 2009 at 3:04 AM, Robert Bradshaw wrote: > > On Jul 5, 2009, at 2:24 PM, Pablo wrote: > >> Hello, >> >> I have setup a sage notebook on a so that many colleagues can run on >> it. It seems to work well but I still have two questions on the way it >> works which where not answered by

[sage-support] Re: Deleting notebook DATA file leads to error page

2009-07-07 Thread William Stein
On Tue, Jul 7, 2009 at 11:23 AM, Kevin Horton wrote: > > On 7 Jul 2009, at 13:27, William Stein wrote: > >> On Tue, Jul 7, 2009 at 10:19 AM, Kevin Horton >> wrote: >>> >>> I'm using sage 4.0.2 on 32 bit ubuntu 8.10, via the notebook >>> interface.  If I delete a data file using the notebook (Data.

[sage-support] Re: Deleting notebook DATA file leads to error page

2009-07-07 Thread Kevin Horton
On 7 Jul 2009, at 13:27, William Stein wrote: > On Tue, Jul 7, 2009 at 10:19 AM, Kevin Horton > wrote: >> >> I'm using sage 4.0.2 on 32 bit ubuntu 8.10, via the notebook >> interface. If I delete a data file using the notebook (Data... pop >> up >> menu -> file name -> delete file name link)

[sage-support] Re: Deleting notebook DATA file leads to error page

2009-07-07 Thread William Stein
On Tue, Jul 7, 2009 at 10:19 AM, Kevin Horton wrote: > > I'm using sage 4.0.2 on 32 bit ubuntu 8.10, via the notebook > interface.  If I delete a data file using the notebook (Data... pop up > menu -> file name -> delete file name link), the file is deleted, but > the browser then goes to a blank

[sage-support] Deleting notebook DATA file leads to error page

2009-07-07 Thread Kevin Horton
I'm using sage 4.0.2 on 32 bit ubuntu 8.10, via the notebook interface. If I delete a data file using the notebook (Data... pop up menu -> file name -> delete file name link), the file is deleted, but the browser then goes to a blank page titled "Error | Sage Notebook". The browser is Sa

[sage-support] Collaborate

2009-07-07 Thread Mikie
I am looking for someone to help with my API. It is working rather nicely, but I do not have "pretty_print" working. I have installed JSmath in a plain html page and it works. I have put it in my server, but when it trys to call a javasript other than load.js there is a problem. Does anyone ha

[sage-support] Re: problem with list generation and substitutions

2009-07-07 Thread Stan Schymanski
Yes, that's right. I got confused. Thanks for the quick answer! Stan Robert Bradshaw wrote: > On Jul 7, 2009, at 2:18 AM, Stan Schymanski wrote: > > >> Dear all, >> >> For some reason, I cannot generate lists of values using a symbolic >> function any more, as the variable does not get sub

[sage-support] Re: Sharing a notebook

2009-07-07 Thread Robert Bradshaw
On Jul 5, 2009, at 2:24 PM, Pablo wrote: > Hello, > > I have setup a sage notebook on a so that many colleagues can run on > it. It seems to work well but I still have two questions on the way it > works which where not answered by investigating the net : > - how can I now if any user has connec

[sage-support] Re: scipy binomial pmf

2009-07-07 Thread Robert Bradshaw
On Jul 6, 2009, at 2:21 PM, Mikie wrote: > Yes, I am calling Scipy functions from a standard Python, thus no > preparser. It does not recognize 1r, 10r, etc. > Is there anyway to get it to work? I have also tried R, but r.binom > does not work. An example, including the error message, would be

[sage-support] Re: problem with list generation and substitutions

2009-07-07 Thread Robert Bradshaw
On Jul 7, 2009, at 2:18 AM, Stan Schymanski wrote: > > Dear all, > > For some reason, I cannot generate lists of values using a symbolic > function any more, as the variable does not get substituted. Variables never get automatically substituted, you must explicitly ask for it: sage: var('x')

[sage-support] problem with list generation and substitutions

2009-07-07 Thread Stan Schymanski
Dear all, For some reason, I cannot generate lists of values using a symbolic function any more, as the variable does not get substituted. The first example shows that the values do not get substituted for x, the second example shows that this works if I type the function into the list constructi

[sage-support] Re: How to extend homomorphisms from the base ring to the polynomial ring?

2009-07-07 Thread mmarco
Ok, i think i got what you suggested: sage: alpha=symbolic_expression(x^2+x+1).roots (ring=QQbar,multiplicities=False) sage: K.=NumberField(x^2+x+1) sage: R1.=K[] sage: f=R1(x*y-a*y+x) sage: H=K.hom([alpha[0]],QQbar) sage: R2.=QQbar[] sage: sum([H(i[0])*R2(str(i[1])) for i in list(f)]) x*y + x +