[sage-support] question about radical

2011-08-17 Thread pong
Hum... [radical(k) for k in [1..30]] produces the expected list however [radical(k) for k in range(1,31)] rises an error AttributeError: 'int' object has no attribute 'factor' Wouldn't it be nice if the 2nd comprehension also give the desire list? Any reason why shouldn't SAGE take that? --

[sage-support] Re: question about radical

2011-08-17 Thread Simon King
Hi Pong, On 17 Aug., 09:20, pong wypon...@gmail.com wrote: Hum... [radical(k) for k in [1..30]] produces the expected list however [radical(k) for k in range(1,31)] rises an error AttributeError: 'int' object has no attribute 'factor' That's no surprise, because range is Python and thus

[sage-support] rank

2011-08-17 Thread Foad Khoshnam
Hello I used the Mwrank option -p 300 to calculate the rank of curve Curve [0,1,0,-159627308733826113531278066761692301750824909156,-24543003331398069071481672747624345262031248143014554550977848062108256] : 2= rank = 3 Also I used option -s to its selmer rank so its selmer rank was 3. Is it

Re: [sage-support] Re: Accessing Sage Server from other clients on same LAN

2011-08-17 Thread Owen Densmore
Fixed it. It seems to require me using the sage terminal on the Mini server rather than Sage.app. On the Mini I use a terminal session with: notebook(interface='',secure=True) Then on my Air, for example, I just beam into the url: https://10.0.1.222:8000 Chrome gets bitchy about the server's

Re: [sage-support] question about radical

2011-08-17 Thread Justin C. Walker
Hi, On Aug 17, 2011, at 00:20 , pong wrote: [radical(k) for k in [1..30]] produces the expected list however [radical(k) for k in range(1,31)] rises an error AttributeError: 'int' object has no attribute 'factor' The problem here is the distinction between Python 'int's and Sage

[sage-support] Re: Accessing Sage Server from other clients on same LAN

2011-08-17 Thread kcrisman
On Aug 17, 11:31 am, Owen Densmore o...@backspaces.net wrote: Fixed it.  It seems to require me using the sage terminal on the Mini server rather than Sage.app.  On the Mini I use a terminal session with: notebook(interface='',secure=True) Then on my Air, for example, I just beam into the

[sage-support] Re: Notebook Problems

2011-08-17 Thread kcrisman
On Aug 16, 11:39 pm, Owen Densmore o...@backspaces.net wrote: More info, just in case:  Using latest Chrome browser, running Snow Leopard latest. Intel.  Sorry about three questions in one post, just noticed. You have a more recent post about the LAN - does that mean this resolved itself, or

[sage-support] how to a copy of a nested list?

2011-08-17 Thread Stan Schymanski
Dear all, This has been driving me mad. According to the python documentation, you can modify a copy of a list without modifying the original using the following code: sage: L = [] sage: M = L[:] # create a copy sage: # modify L only sage: L.append(1) sage: M [] Now, I want to do the same with

Re: [sage-support] how to a copy of a nested list?

2011-08-17 Thread Robert Bradshaw
On Wed, Aug 17, 2011 at 9:09 AM, Stan Schymanski schym...@gmail.com wrote: Dear all, This has been driving me mad. According to the python documentation, you can modify a copy of a list without modifying the original using the following code: sage: L = [] sage: M = L[:] # create a copy

Re: [sage-support] Re: Notebook Problems

2011-08-17 Thread Owen Densmore
On Wed, Aug 17, 2011 at 10:06 AM, kcrisman kcris...@gmail.com wrote: On Aug 16, 11:39 pm, Owen Densmore o...@backspaces.net wrote: More info, just in case: Using latest Chrome browser, running Snow Leopard latest. Intel. Sorry about three questions in one post, just noticed. You have

[sage-support] Re: Notebook Problems

2011-08-17 Thread kcrisman
I've resolved it, thanks. Great. I think the problem is solved if I use the .sws file export and upload that. Oh, yes. As far as I know that is the official way to upload the worksheets. What did you try? Its only when I upload the worksheets to sagenb.org that I get conflicts so its

[sage-support] Re: rank

2011-08-17 Thread John Cremona
On Aug 17, 1:39 pm, Foad Khoshnam khosh...@gmail.com wrote: Hello I used the Mwrank option -p 300 to calculate the rank of curve Curve [0,1,0,-159627308733826113531278066761692301750824909156,-24543003331398069 071481672747624345262031248143014554550977848062108256] : 2= rank = 3 Also I

Re: [sage-support] Re: Error: LaTeX does not seem to be installed.

2011-08-17 Thread G B
The paths are definitely different for terminal launched and app launched Sage, and app launched Sage doesn't include /usr/texbin. Sorry to sound so helpless, but what syntax would I use to add it to my init.sage? I don't currently have one, and I've come up blank searching for it in the

Re: [sage-support] Re: Error: LaTeX does not seem to be installed.

2011-08-17 Thread G B
Yep, that did it. Comparing the path variables showed them to be quite different. I've added the following to my init.sage: os.environ[PATH]+=:/usr/texbin:/usr/local/bin and everything runs happy. Just adding /usr/texbin didn't work because Sage also needs to find 'convert' which I have in