[sage-devel] Re: Final Sage 3.1.3 sources are out

2008-10-15 Thread John Voight
I tried [EMAIL PROTECTED]:~$ tar -zxvf sage-3.1.3-sage.math-only-x86_64- Linux.tar.gz (copied from http://sage.math.washington.edu/home/mabshoff/release-cycles-3.1.3/) and it gives me the error: sage-3.1.3-sage.math-only-x86_64-Linux/local/lib/clisp-2.46/base/ width.o sage-3.1.3-sage.math-only

[sage-devel] Re: Sage notebook, memory hog!

2008-08-28 Thread John Voight
It is indeed weird! I'm not really sure what's going on. I think the simplest thing to do right now is just to run the notebook on a different machine, since I want to reserve this machine for my research anyway. (For the record, I was running 64 bit Ubuntu.) Thanks all, JV --~--~-~--~

[sage-devel] Sage notebook, memory hog!

2008-08-27 Thread John Voight
ay to limit the total memory that the notebook is allowed to use? I see there is a ulimit command, but I would guess this limits each individual process, not the total memory used? Thanks, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://w

[sage-devel] Txt sage?

2008-05-12 Thread John Voight
fed to the sage.math notebook. (This is a real life example from lunch with a colleague a month ago!) Yours, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uvm.edu/~voight/ --~--~-~--~~~---~-

[sage-devel] Re: #2755 related doctest failure in totallyreal_rel.py

2008-05-02 Thread John Voight
Is there a canonical way to sort elements of an algebraic number field? I can think of one or two, but this is a needlessly costly thing to do, IMHO. JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this

[sage-devel] Re: #2755 related doctest failure in totallyreal_rel.py

2008-05-02 Thread John Voight
Yes, the ordering of the elements does not at all affect the correctness of the output--the most mathematically correct thing would be to output a set. This change can be due to any number of things, but it's probably not worth ascertaining the exact cause. JV --~--~-~--~~-

[sage-devel] Re: notebook features discussion

2008-04-23 Thread John Voight
Hello! I've run some Sage labs using the notebook here at UVM and two things have come up. (1) At the end of class, I asked my students to print out their work and turn it in. I stopped this almost immediately, since the printouts are hugely wasteful: blank pages, things overrun the margins, et

[sage-devel] Re: new build optimization skipping cython step

2008-02-25 Thread John Voight
I got the same error message. I installed 2.10.2 fresh on a Ubuntu x64, and after applying a patch and attempting to compile, it gave me the error. JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this g

[sage-devel] Re: Kill and restart Pari instance?

2008-02-12 Thread John Voight
Oh, the "instance" that I was referring to is just the language I picked up from reading sage/libs/pari/gen.pyx: it appeared as though pari('') was shorthand for a globally defined PariInstance. The "old instance" is the one you can obtain externally from pure Python code. Is this not what is ha

[sage-devel] Kill and restart Pari instance?

2008-02-12 Thread John Voight
at makes the memory issues even worse!) Yours, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uvm.edu/~voight/ --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroup

[sage-devel] Group theory in Sage

2008-01-31 Thread John Voight
er. Yours, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uvm.edu/~voight/ --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, sen

[sage-devel] Re: sage.bin: /lib32/libc.so.6: version `GLIBC_2.4' not found (required by sage.bin)

2008-01-14 Thread John Voight
Hi Will, > > (I also tried the 64-bit.) > > I'm curious about how that failed. I downloaded http://www.sagemath.org/SAGEbin/linux/64bit/sage-2.9.2-ubuntu64-opteron-x86_64-Linux.tar.gz and untarred and got a different error message: [EMAIL PROTECTED]:~/sage-2.9.2$ ./sage --

[sage-devel] sage.bin: /lib32/libc.so.6: version `GLIBC_2.4' not found (required by sage.bin)

2008-01-14 Thread John Voight
e.bin) sage.bin: /lib32/libc.so.6: version `GLIBC_2.4' not found (required by sage.bin) python: /lib32/libc.so.6: version `GLIBC_2.4' not found (required by python) (I also tried the 64-bit.) Forgive the naive question, but what does this mean?! Thanks for your help. John Voight Assista

[sage-devel] Re: Auto-login under VMware

2007-12-15 Thread John Voight
Sure William, done. Like oh so many things, once you know what to do, it's trivial! JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit th

[sage-devel] Re: Auto-login under VMware

2007-12-12 Thread John Voight
Jason: The VMware appliance is only terminal-based. But I found what I needed. An appropriate modification of: http://ubuntu-utah.ubuntuforums.org/showthread.php?t=303319 works just fine. Thanks all, JV --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-devel] Re: Auto-login under VMware

2007-12-12 Thread John Voight
Thanks Yi and Nils, Yi: I wasn't sure this really applied, as Ubuntu seems to lack an /etc/ inittab file. But anyway I downloaded and installed mingetty, created such a file according to the website, and there is still no automatic login. Nils: I also created a /etc/init.d/sage file like yours,

[sage-devel] Auto-login under VMware

2007-12-11 Thread John Voight
the first place (!) and its interference with the DSage network connection. I'd like to be able to just reboot every 12 or 24 hours or so, but in order for that to resolve these issues, I apparently need to really reboot both the Windows machine and the VMware machine (not just pause and rest

[sage-devel] Re: ?Matrix

2007-11-10 Thread John Voight
When I add from sage.matrix.constructor import matrix then I get the error: /home/jvoight/sage/local/lib/python2.5/site-packages/sage/matrix/ constructor.py in () 19 #* 20 ---> 21 import sage.rings.all as ring

[sage-devel] Re: My talk with martin Albrecht

2007-11-09 Thread John Voight
Oh, I didn't know I was going to get quoted! (That's fine, of course.) Are we suppose to write "SAGE" since it's an acronym or "Sage" like you do? JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this

[sage-devel] ?Matrix

2007-11-09 Thread John Voight
How do I use matrix (or Matrix?) inside python files which are compiled? Suppose I have a file: def my_matrix(d): return Matrix(ZZ,d,d,[ [i+j for i in range(d)] for j in range(d)]) I include it in my favorite directory, and compile SAGE, and run: sage: my_matrix(3)

[sage-devel] Re: Fwd: [sage-support] sage-2.8.12 build report

2007-11-09 Thread John Voight
I just downloaded a new tarball from sage.math. JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.co

[sage-devel] Re: Fwd: [sage-support] sage-2.8.12 build report

2007-11-09 Thread John Voight
I tried to sage -upgrade my 2.8.9 this evening on an Ubuntu x686, and I got: Building sage/matrix/misc.c because it depends on sage/matrix/ misc.pyx. touch sage/matrix/misc.pyx; cython --embed-positions --incref-local- binop -I/home/kostadm/sage/devel/sage-main -o sage/matrix/misc.c sage/ matrix/

[sage-devel] Re: number_field_element coercion

2007-11-09 Thread John Voight
Thanks, somehow I knew this was going to become a trac ticket. It is also my suspicion that it is an optimization issue with number fields. It seems really bizarre that it should be calling a polynomial ring constructor! (The cost right now is absolutely killing me right now. I've started enum

[sage-devel] number_field_element coercion

2007-11-08 Thread John Voight
x} 50.0830.0000.0830.000 {method 'base_ring' of 'sage.structure.parent_base.ParentWithBase' objects} Woah! Can someone explain to me the various calls above? I'd think this should take epsilon time to coerce the elements of the sequence. Or perhaps

[sage-devel] NumberField naming convention

2007-11-03 Thread John Voight
sage: ZZ['x'] Univariate Polynomial Ring in x over Integer Ring sage: F = NumberField(x^2+1) --- Traceback (most recent call last) /home/jvoight/ in () /home/jvoight/sage/local/lib/python2.5/site-packages/sage/r

[sage-devel] Re: VMware root password

2007-10-28 Thread John Voight
I tried that. sage login: root Password: sage No dice. Did this change and I need to acquire a new VMware appliance? JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL

[sage-devel] VMware root password

2007-10-27 Thread John Voight
Hi, What is the root password for the VMware SAGE installation? I can't make any changes to the necessary directories (patches, etc.) when I am logged in as "manage" or even when I abort from sage when logged in as "sage". Thanks, JV --~--~-~--~~~---~--~~ To po

[sage-devel] Re: Totally real number fields: Talk at MIT

2007-10-27 Thread John Voight
Wow, cool! Thanks! JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: htt

[sage-devel] Totally real number fields: Talk at MIT

2007-10-26 Thread John Voight
/totallyreal_mit.pdf (Sorry about the orange squares, they're a vestige of foiltex...) Yours, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uvm.edu/~voight/ --~--~-~--~~~---~--~~ To post to this

[sage-devel] Re: DSage server: start clean?

2007-10-23 Thread John Voight
I think I figured out a brutal way: Just delete the $HOME/.dsage/dsage directory! There must be a better way... JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECT

[sage-devel] DSage server: start clean?

2007-10-23 Thread John Voight
I start a DSage server, then add several jobs to it, then kill SAGE. Then I start DSage up again, and start workers. These workers go after the dead jobs! Maybe this is a feature? How do I get a "clean" DSage server? Thanks, JV --~--~-~--~~~---~--~~ To post t

[sage-devel] Re: 2.8.8.1 on Ubuntu

2007-10-22 Thread John Voight
Boo. Only part of gcc gets installed by Ubuntu. I had to sudo apt-get install build-essential. Now we're good. JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROT

[sage-devel] 2.8.8.1 on Ubuntu

2007-10-22 Thread John Voight
Hi all, I did a fresh install of Ubuntu, downloaded 2.8.7, then did a sage - upgrade, and got the following error: [EMAIL PROTECTED]:/home/kostadm/sage# ./sage -upgrade [...] GCC Version gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=

[sage-devel] sage-2.8.>=6 on RHEL

2007-10-17 Thread John Voight
Hello all, We did a fresh install of RHEL 5 and tried to install sage-2.8.6 (and . 7), and we got the following error message: The SAGE install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait less than a minute)... Please do not interrupt t

[sage-devel] Re: Unbelievably trivial

2007-10-16 Thread John Voight
Hi Robert, I can't seem to get primessq to be defined as a cdef long*. I've tried cdef long primessq[46] = [...] cdef long *primessq = [...] etc. and they always give errors. Cython doesn't allow you to use macros (#define) I guess? JV --~--~-~--~~~---~--~

[sage-devel] Another cython?

2007-10-16 Thread John Voight
This must be a different cython, no? http://campbell.nu/oscar/cython/cython-doc.html Weird! JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more optio

[sage-devel] Re: DSage under Windows/VMware

2007-10-12 Thread John Voight
Thanks Yi, It's definitely a start. I absolutely need Cython compatibility--the whole reason I'm using SAGE is the ease at which I can write optimized code. Should we make this a trac ticket? Why can't the dsage worker just execute a load command? JV --~--~-~--~~~---

[sage-devel] Re: DSage under Windows/VMware

2007-10-11 Thread John Voight
Thanks Yi, I was able to install your patch. What exactly did this fix? Do I still have to follow the long instructions about modifying the job in case I want to include functions from a file--or is that still under development? JV --~--~-~--~~~---~--~~ To pos

[sage-devel] Re: Bug Day 4 Proposal: Oct. 20th, 2007

2007-10-11 Thread John Voight
Cool, count me in! JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http

[sage-devel] Re: DSage under Windows/VMware

2007-10-10 Thread John Voight
rom is all Windows machines. I've gotten it to work with sage.math running as the client/server-- does that especially bother you, Will? Yours, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.

[sage-devel] DSage under Windows/VMware

2007-10-10 Thread John Voight
Anyone get DSage to work under Windows/VMware? I'm able to get workers (under Windows) to connect to sage.math when I run the client/server there, so that works. But repeating the same client/server steps on a Windows machine has yielded nothing. Just wondered if anyone has tried this--or maybe

[sage-devel] Re: dsage

2007-10-10 Thread John Voight
What is "screen"? Unfortunately, it is not an easy thing to Google! JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at ht

[sage-devel] Re: Unbelievably trivial

2007-10-10 Thread John Voight
Beautiful, thanks! No my unbelievably trivial problem can be solved extremely fast. There appears to be something else which is inexplicably eating up time now--maybe coercion between PARI and SAGE integers in other places... JV --~--~-~--~~~---~--~~ To post to

[sage-devel] Re: Unbelievably trivial

2007-10-09 Thread John Voight
I decided on something like this: - cimport sage.rings.integer primessq = [4, 9, 25, 49, 121, 169, 289, 361, 529, 841, 961, 1369, 1681, 1849, 2209, 2809, 3481, 3721, 4489, 5041, 5329, 6241, 6889, 7921, 9409] len_primes = 25 def int_has_small_square_divisor(sage.rings.integer.In

[sage-devel] Unbelievably trivial

2007-10-09 Thread John Voight
d working in PARI, SAGE, and some bits of Cython, but it's always conversion that is killing me. Ideas welcome! John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uvm.edu/~voight/ --~--~-~--~~~-

[sage-devel] Re: nfrootsof1

2007-10-07 Thread John Voight
Indeed! Next time this comes up, I will take care of it myself and send you a patch. :) JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, v

[sage-devel] Re: nfrootsof1

2007-10-05 Thread John Voight
Thanks Will very much! So wait, is that all? You only need to modify the sage/libs/pari/ gen.pyx file with the right C-named pari function? That seems a little too easy! JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com

[sage-devel] Re: nfrootsof1

2007-10-04 Thread John Voight
OK, done. I'll see if I can make any progress on it myself. JV --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://gro

[sage-devel] nfrootsof1

2007-10-02 Thread John Voight
Hello all, I've asked for a few pari functions in SAGE, and now I'm about to ask for another: I need nfrootsof1. For my own edumacation, I'd slightly prefer if someone were to show me how to do it. I can't seem to follow Martin's write-up in the Programming Guide. Thanks, JV --~--~-~

[sage-devel] Re: Burlington, VT on May 30-31, 2008

2007-09-20 Thread John Voight
Of course, I'm local! So let me know what I can do, I'm happy to help in any way. John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uvm.edu/~voight/ --~--~-~--~~~---~--~~ To po

[sage-devel] Re: SIGSEGV

2007-09-19 Thread John Voight
code is that you > try to free memory in the __del__ function, which is the wrong place > (don't ask my whey they named it as such). This should be done in a > __dealloc__ function instead (which is perhaps leading to one memory > leak, but it looks like it only happens once. Than

[sage-devel] Re: SIGSEGV

2007-09-19 Thread John Voight
right? I can save on creating anything outside of Pari if I create a public method in my data type which stores the one existing polynomial I'm considering. Is there any better way of porting an int[] into Python/ SAGE without doing the naive thing that I did above? Yours, John Voight Assista

[sage-devel] Re: SIGSEGV

2007-09-19 Thread John Voight
it's through with it? Garbage collection won't deal? Thoughts? Thanks again, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED]://www.cems.uvm.edu/~voight/ --~--~-~--~~~---~--~~ To pos

[sage-devel] Re: SIGSEGV

2007-09-19 Thread John Voight
27;re promising to eventually have a cluster of about 20 computers with around 3.0 GHz processors. Eventually. :) John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uvm.edu/~voight/ --~--~-~--~~~--

[sage-devel] Re: SIGSEGV

2007-09-19 Thread John Voight
Hi Michael, > John's code doesn't leak memory, Sage doesn't outright leak any memory > (well, more than usual, the is still some "possibly lost" and "still > reachable". After about an hour on sage.math we are approaching about > 1GB of memory consumption. I am not sure how much longer the > comp

[sage-devel] Re: SIGSEGV

2007-09-19 Thread John Voight
Hi Will, > Hey, that code is really pretty. Mind if I include it in Sage soon? That > would make it easier for other people to try it out and contribute back. Thanks! I'd be thrilled. Still working hard on optimization, so since it's only a "secondary" algorithm so to speak, I'd like to wai

[sage-devel] Re: SIGSEGV

2007-09-19 Thread John Voight
Hi Will, > Hey, that code is really pretty. Mind if I include it in Sage soon? That > would make it easier for other people to try it out and contribute back. Thanks! I'd be thrilled. Still working hard on optimization, so since it's only a "secondary" algorithm so to speak, I'd like to wai

[sage-devel] Re: SIGSEGV

2007-09-19 Thread John Voight
Thanks Michael, The bug only pops up after about an hour of computation. The code is http://www.cems.uvm.edu/~voight/tr_data.spyx http://www.cems.uvm.edu/~voight/totallyreal.py and what I ran was sage: load tr_data.spyx sage: load totallyreal.py sage: time enumerate_totallyreal_fields(

[sage-devel] SIGSEGV

2007-09-18 Thread John Voight
emory leak on my hands? I would be a little surprised if it is the latter, since it only shows up after a significant length of time in the algorithm, but anything is possible... Wish I could be part of the bug squash on Thursday, I'll be up in Montreal that day! Yours, John Voight Assista

[sage-devel] Re: number fields

2007-09-18 Thread John Voight
y adjoined--but when you adjoin a new element it compares it to the existing one and inductively builds from there... John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uvm.e

[sage-devel] Re: Enumeration of totally real fields, continued

2007-09-13 Thread John Voight
do procedure|for> f := Polynomial([d,0,1]); procedure|for> K := NumberField(f);1]); procedure|for> _ := Discriminant(K); procedure|for> end for; procedure> end procedure; > time DumberListFields(10^4); Time: 0.550 Any ideas here? Presumably, one can calculate a maximal order and h

[sage-devel] Re: Enumeration of totally real fields, continued

2007-09-13 Thread John Voight
and have certain advantages. I'm not sure I've added much to your discussion, but anyway, thanks for looking into this. Yours, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cems.uv

[sage-devel] Enumeration of totally real fields, continued

2007-09-12 Thread John Voight
sage.structure.sage_object.SageObject' objects} 9710.1010.0000.9220.001 number_field.py: 157(NumberField) [...] It'd better not be the case that invariants of the field are automatically computed...! (8) When printing a list of integers, why does it print vertically

[sage-devel] Re: Number field enumeration

2007-09-05 Thread John Voight
from f to coeffs? I tried to get around this myself, but due to my status as a cherub SAGE programmer, I couldn't ascertain the right data types to use... Yours, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] http:/

[sage-devel] Re: Number field enumeration

2007-09-04 Thread John Voight
r so), and have small degree (<= 11). The problem is that there are zillions of them--so I need this data very quickly! Any advice would be most appreciated. Yours, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROT

[sage-devel] Re: trac #583

2007-09-03 Thread John Voight
Newton method which also in many cases beat the root finding in numpy--but only because of overhead costs. Note that these trial runs use very little of the number field machinery: the bottleneck is still real arithmetic and whatever other overhead is sneaking in... Very frustrating! Yours, J

[sage-devel] Number field enumeration

2007-09-03 Thread John Voight
we need to find the root in an interval given by the adjacent roots of the derivatives.] Any suggestions or guidance that any of you have would be most appreciated. Thanks, John Voight Assistant Professor of Mathematics University of Vermont [EMAIL PROTECTED] [EMAIL PROTECTED] h