[sage-support] Re: build failure on andLinux / Ubuntu

2009-05-29 Thread William Stein
On Fri, May 29, 2009 at 7:03 PM, gary wrote: > > I'm running Ubuntu 9.04 in andLinux > ( http://www.andlinux.org ) > a linux kernel that runs on MS Windows.  Up to now, it's behaved just > like any other Ubuntu. > > I've compiled sage on other Ubuntus, including an Ubuntu-only machine, > and in a

[sage-support] Re: Stein-Watkins fails to install

2009-05-29 Thread William Stein
On Fri, May 29, 2009 at 8:26 PM, Nils Bruin wrote: > > The full Stein-Watkins package fails to install cleanly on x86_64- > redhat-linux > > http://modular.math.washington.edu/Tables/ecdb/stein-watkins-ecdb.spkg > > The relevant lines from install-log seem to be: > > mv: invalid option -- r > Try

[sage-support] Stein-Watkins fails to install

2009-05-29 Thread Nils Bruin
The full Stein-Watkins package fails to install cleanly on x86_64- redhat-linux http://modular.math.washington.edu/Tables/ecdb/stein-watkins-ecdb.spkg The relevant lines from install-log seem to be: mv: invalid option -- r Try `mv --help' for more information. Since the install script only mov

[sage-support] build failure on andLinux / Ubuntu

2009-05-29 Thread gary
I'm running Ubuntu 9.04 in andLinux ( http://www.andlinux.org ) a linux kernel that runs on MS Windows. Up to now, it's behaved just like any other Ubuntu. I've compiled sage on other Ubuntus, including an Ubuntu-only machine, and in a Ubuntu guest on a WinXP host using VirtualBox. Never had a

[sage-support] Re: Install problems

2009-05-29 Thread mathgeek
Thank you so much for your help. I uninstalled the packages from ubuntu and just reinstalled from the download from the site. Thankfully someone in my department was able to help me install things and get it fixed up, it not only runs faster but the plotting now works, so I think their is either

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-29 Thread Marshall Hampton
"This", for me, is extremely sluggish notebook behavior in creating cells, and to a lesser extent autocompletion. I'm not sure if its related to the "100% CPU" issue of Kiran. The first version I saw this in was 3.4, and its still there in 3.4.2. But it seems much much worse on one of my server

[sage-support] Re: OS X permission denied

2009-05-29 Thread gatucker
Many thanks. That did the trick. -Gary Tucker On May 29, 1:51 pm, William Stein wrote: > On Fri, May 29, 2009 at 10:49 AM, gatucker wrote: > > > I was having this problem on my previous version of Sage (sorry, I > > trashed it and didn't record the version). I updated to 3.4.2 64bit > > and he

[sage-support] Problem with lift?

2009-05-29 Thread Jacob
I got an odd error when I tried some Groebner basis computations over a function field. The "lift" command that should give coordinates of an element of an ideal in terms of a basis gives me an error when it shouldn't. Here's an example: sage: K = FractionField(QQ['b','c']) sage: R. = Polynomia

[sage-support] Re: OS X permission denied

2009-05-29 Thread William Stein
On Fri, May 29, 2009 at 10:49 AM, gatucker wrote: > > I was having this problem on my previous version of Sage (sorry, I > trashed it and didn't record the version). I updated to 3.4.2 64bit > and here is the error I get when I try to start up. > > Any idea how to fix. I've already run "repair pe

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-29 Thread William Stein
2009/5/29 Kiran Kedlaya : > > > > On Apr 14, 3:47 pm, William Stein wrote: >> On Tue, Apr 14, 2009 at 12:30 PM, Kiran Kedlaya wrote: >> >> > I see 100% CPU usage when the notebook is processing a cell. I don't >> > remember whether I still have it when a worksheet is open but idle. >> >> > Kiran

[sage-support] OS X permission denied

2009-05-29 Thread gatucker
I was having this problem on my previous version of Sage (sorry, I trashed it and didn't record the version). I updated to 3.4.2 64bit and here is the error I get when I try to start up. Any idea how to fix. I've already run "repair permissions" in Disk Utility. -Gary Tucker sage gtucker$ ./sag

[sage-support] Re: evaluer un polynome en une liste d'une liste de racines

2009-05-29 Thread gerhard
Je ne vois pas trop ce que vous essayez de faire: le code que vous proposez ne peut pas executer. En python, les indices de listes et de matrices commencent avec zero. Une liste l de longeur n a comme elements l[0], l[1], l[2], ... l[n-1] Le resultat de la fonction range(n) est justement cette

[sage-support] Re: Notebook server sluggish in 3.4

2009-05-29 Thread Kiran Kedlaya
On Apr 14, 3:47 pm, William Stein wrote: > On Tue, Apr 14, 2009 at 12:30 PM, Kiran Kedlaya wrote: > > > I see 100% CPU usage when the notebook is processing a cell. I don't > > remember whether I still have it when a worksheet is open but idle. > > > Kiran > > For the record, I definitely don'

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-29 Thread William Stein
On Fri, May 29, 2009 at 7:03 AM, Laurent wrote: > > davidloeffler ha scritto: >> Another alternative: if you call your file "test.sage" rather than >> "test.py", and then do "sage test.sage" from the command line, it will >> be run as if you had typed all the corresponding commands in a Sage >> s

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-29 Thread Laurent
davidloeffler ha scritto: > Another alternative: if you call your file "test.sage" rather than > "test.py", and then do "sage test.sage" from the command line, it will > be run as if you had typed all the corresponding commands in a Sage > session, so you don't need the "from sage.all import *" li

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-29 Thread Kurda Yon
Great! It works. It is exactly what I needed. By the way. If I execute test.sage, sage creates a new file called sage.py. Is there a way to prevent that? On May 29, 9:45 am, davidloeffler wrote: > Another alternative: if you call your file "test.sage" rather than > "test.py", and then do "sage t

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-29 Thread davidloeffler
On May 29, 2:41 pm, Kurda Yon wrote: > But because of some reason it does not work. I create a file called > "test.py". I put there just one line "from sage.all import *" and then > I execute this code as a Python program "python test.py". Then I get > the following: >   File "test.py", line 1, i

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-29 Thread davidloeffler
Another alternative: if you call your file "test.sage" rather than "test.py", and then do "sage test.sage" from the command line, it will be run as if you had typed all the corresponding commands in a Sage session, so you don't need the "from sage.all import *" line in Laurent's example above. Da

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-29 Thread Kurda Yon
Hi Laurent, Thank you for your answer. I am trying to understand your code (I started to use sage just yesterday, so it can be a problem for me). The first 2 lines looks like you want to execute the commands in as a shell script. This assumptions is also supported by by a fact that I have to make

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-29 Thread Laurent
Sage is a python module. The following is an example which defines a class from which you can manipulate functions : - #! /usr/bin/sage -python # -*- coding: utf8 -*- from sage.all import * class MaClasse(object): def __init__(self,exp):

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-29 Thread David Joyner
You might be looking for the attach command: http://www.sagemath.org/doc/tutorial/programming.html On Thu, May 28, 2009 at 6:50 PM, Kurda Yon wrote: > > Hi all, > > is it possible to write a file with a "sage program" (a set of sage > command) and then execute the program? > > I tried to write

[sage-support] Can I write a sage program and run it from command line?

2009-05-29 Thread Kurda Yon
Hi all, is it possible to write a file with a "sage program" (a set of sage command) and then execute the program? I tried to write a file (called test.py) just with one line: print 3 Then I typed in the Linux command line: ./sage test.py It worked! I got 3 as a result. Then I tried to constr

[sage-support] Re: `rat' replaced 1000000.0 by 1000000/1 = 1000000.0

2009-05-29 Thread flori
hay thanks for the answer I thought python defines the types itself... how can you define the data type? regards florian --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-sup

[sage-support] building sage 4.0.rc0 with gcc 4.4.0 and glibc 2.10.1 fails (on arch linux)

2009-05-29 Thread prhlava
Hello, I have tried to build the Sage 4.0.rc0 with gcc 4.4.0 and gllibc 2.10.1 on ArchLinux intel 686 (32 bit) and it fails with the following in the install.log: g++ -Wall -g -o ./smattest smattest_n.o smatrix_elim_n.o svector_n.o smatrix_n.o subspace_n.o matrix_n.o vector_n.o arith_n.o -lpa

[sage-support] Re: Install problems

2009-05-29 Thread Dan Drake
On Thu, 28 May 2009 at 05:56PM -0700, mathgeek wrote: > > Did you install Sage through apt or Synaptic? If so, you should know > > that the version of Sage available in Ubuntu does not pass doctests, so > > it's somewhat pointless to even run the tests. > > I'm not exactly sure what that is. I ope