[sage-devel] Re: preparser is affecting commands like 'cd', 'mv', etc.

2011-01-19 Thread Niles
On Jan 18, 1:00 pm, Mike Hansen wrote: > If you just want to run "system" commands, just use the IPython > command for that: > >  !mv tmp0-50/output-02*.png some-other-directory/ Ah -- I didn't know about that. Thanks! Niles -- To post to this group, send an email to sage-devel@googlegroups.

[sage-devel] Sage Virtual Machine, download size 407 MB

2011-01-19 Thread Emil Widmann
Using my stripped binaries http://groups.google.com/group/sage-devel/browse_thread/thread/7d911e59a649eaf6 and the base distribution of the Live CD, I have managed to build a virtual machine from sage (version 4.6, size zipped 407 MB, size unzipped 468 MB). This is a reduction of roughly 60% compar

[sage-devel] Re: preparser is affecting commands like 'cd', 'mv', etc.

2011-01-19 Thread mhampton
I don't like to assume the existence of IPython for portability reasons, so I usually just use something like err = os.system('mv tmp0-50/output-02*.png some-other-directory') A little more to type I guess, but safer I think. -Marshall On Jan 19, 6:33 am, Niles wrote: > On Jan 18, 1:00 pm, Mike

Re: [sage-devel] magma_free fights back?

2011-01-19 Thread Jeroen Demeyer
With #10499 applied: -- | Sage Version 4.6.1, Release Date: 2011-01-11 | | Type notebook() for the GUI, and license() for information.| -

[sage-devel] Re: Adjoint of a matrix

2011-01-19 Thread Rob Beezer
On Jan 18, 5:12 pm, Dima Pasechnik wrote: > Transpose of a vector is a duality between the underlying vectorspace > and its dual. > IMHO for teaching purposes it's important to see the distinction > between row and column vectors. > (Ideally, I think, one would have a "student mode" of Sage, where

[sage-devel] Errors When Starting Sage-4.6.1

2011-01-19 Thread Richard Ruth
This is a repost from sage-support: (More information about my system and configuration is at the bottom of this message.) After compiling sage-4.6.1 without errors in install.log, I try to start up sage and get the following: /usr/local/sage-4.6.1]$ ./sage

[sage-devel] Re: Sagemath 4.6.1 rpm problem in Mandriva

2011-01-19 Thread Paulo César Pereira de Andrade
Em 18 de janeiro de 2011 14:55, Paulo César Pereira de Andrade escreveu: >  Hi, > >  I made a patch that allowed it to generate documentation and build, but > it just gives the same errors when attempting to execute sage. For example: > > -%<- > $ sage > ---

[sage-devel] Re: Adjoint of a matrix

2011-01-19 Thread kcrisman
> A "student mode" is tempting and has been discussed in other contexts > (calculus?).  I think a strength of Sage is that a student can start > with it as an undergraduate and continue to use it the remainder of > their professional careers.  So for my money, I'd rather make > available the funct

[sage-devel] fortran, README.txt, and the supported platforms

2011-01-19 Thread kcrisman
http://wiki.sagemath.org/SupportedPlatforms is nice. There is stuff it says would happen in 2010 that didn't :( and some stuff I think did (OpenSolaris?). It would be nice for someone to update that. This is tangential to the real reason for this post - namely, even with updates like #10243, the

Re: [sage-devel] Errors When Starting Sage-4.6.1

2011-01-19 Thread François Bissey
> This is a repost from sage-support: > > (More information about my system and configuration is at the bottom of > this message.) > > After compiling sage-4.6.1 without errors in install.log, I try > to start up sage and get the following: > How did you install it in /usr/local? That's not a no

[sage-devel] Re: fortran, README.txt, and the supported platforms

2011-01-19 Thread Volker Braun
I would like to see in $SAGE_ROOT: README.txt README-OSX.txt (instead of sage-README-OSX.txt) README-Linux.txt README-Solaris.txt README-Windows.txt ... Then we could separate the generic information from system-specific ones. Also, all $SAGE_ROOT/*.txt files have to move from the sage_scripts

Re: [sage-devel] Re: int floor division

2011-01-19 Thread Tom Boothby
On Tue, Jan 18, 2011 at 11:33 PM, Nils Bruin wrote: > Python 3's division for integers is quite unsuitable for a computer > algebra system. Python 2's division for integers is also quite unsuitable for a computer algebra system: >>> 1/2 0 But Sage fixes this: sage: 1/2 1/2 Since floor divisio

[sage-devel] Re: fortran, README.txt, and the supported platforms

2011-01-19 Thread kcrisman
On Jan 19, 2:47 pm, Volker Braun wrote: > I would like to see in $SAGE_ROOT: > > README.txt > README-OSX.txt  (instead of sage-README-OSX.txt) Just FYI - that file is NOT a normal README, but rather a README that gets copied when we create a dmg disk image when bdisting Sage on Mac. It should

[sage-devel] Re: fortran, README.txt, and the supported platforms

2011-01-19 Thread Volker Braun
I know, and its REALLY weird to have text files in /bin. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-dev

[sage-devel] Re: fortran, README.txt, and the supported platforms

2011-01-19 Thread kcrisman
True - so find someplace else for it that doesn't clutter up $SAGE_ROOT and change sage-bdist appropriately :) I guess it could even go in extcode along with the other stuff for the OS X binary build... but it's for more than just the .app bundle, so I don't know if that's appropriate either. Whe

[sage-devel] Re: fortran, README.txt, and the supported platforms

2011-01-19 Thread Volker Braun
IMHO "readme"-type text files belong into the root repository. When/if it is implemented: http://trac.sagemath.org/sage_trac/ticket/9433 -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.c

[sage-devel] Adding NN (nonegative integer)

2011-01-19 Thread Florent Hivert
Hi there, In combinatorics, we very often use the set of non negative integers. It is currently implemented in sage as NonNegativeIntegers(). Note that it is only a facade parent, that is element it generate are plain standard sage Integer with parent ZZ. We'd like to have it standard in the

[sage-devel] Re: int floor division

2011-01-19 Thread Eviatar
An alternative would be to make standard Python functions (such as count) return Integer objects, but this would make it incompatible with vanilla Python. On Jan 18, 11:33 pm, Nils Bruin wrote: > On Jan 18, 1:20 am, Simon King wrote: > > > On the other hand, eventually we will have Python 3.*, a

Re: [sage-devel] magma_free fights back?

2011-01-19 Thread William Stein
On Wed, Jan 19, 2011 at 7:43 AM, Jeroen Demeyer wrote: > With #10499 applied: Excellent, thanks, especially to Alexey U. Gudchenk for fixing this. William > -- > | Sage Version 4.6.1, Release Date: 2011-01-11                  

Re: [sage-devel] Adding NN (nonegative integer)

2011-01-19 Thread John Cremona
What more than the following are you proposing? sage: version() 'Sage Version 4.6.2.alpha0, Release Date: 2011-01-13' sage: NN Non negative integer semiring sage: latex(NN) \Bold{N} John On 19 January 2011 12:23, Florent Hivert wrote: >      Hi there, > > In combinatorics, we very often use the

[sage-devel] Re: fortran, README.txt, and the supported platforms

2011-01-19 Thread kcrisman
Ok, but this readme is not a readme, if you catch my drift. It's a readme we definitely don't want anyone reading, except when it's bdisted into a dmg top-level directory (above $SAGE_ROOT). On Jan 19, 4:33 pm, Volker Braun wrote: > IMHO "readme"-type text files belong into the root repository.

[sage-devel] setjmp in Cython to escape from a dynamic C library code? (for #6391 (libgap))

2011-01-19 Thread Dima Pasechnik
I wonder if it is possible to use setjmp/longjmp in order to return to a place in a Cython function (within Sage) from a dynamically loaded library written in C. (this would be a way to handle exceptions in GAP interpreter in libGAP (see #6391)) Dima -- To post to this group, send an email to sa

Re: [sage-devel] Re: int floor division

2011-01-19 Thread Tom Boothby
On Wed, Jan 19, 2011 at 2:37 PM, Eviatar wrote: > An alternative would be to make standard Python functions (such as > count) return Integer objects, but this would make it incompatible > with vanilla Python. -1, think of the effort involved, and the performance hit we'd take -- To post to this

[sage-devel] iconv spkg works on Solaris, but the build fails?

2011-01-19 Thread Dan Drake
I'm trying to build 4.6.2.alpha1 on Skynet's "mark" (Solaris SPARC) and the build failed after iconv. Strangely, it seems like the spkg built and installed perfectly correctly. I've attached the install log. Why did the build fail, even though iconv was installed correctly? I restarted the build a

Re: [sage-devel] int floor division

2011-01-19 Thread William Stein
On Mon, Jan 17, 2011 at 5:07 PM, Eviatar wrote: > Hello, > > Sage is still using Python 2.* integer floor division. For example, > int(5)/int(10) returns 0. I think this should be changed to the Python > 3 default behaviour, which would return 0.5. Of course, Integer is > preferable in Sage, but m

[sage-devel] Re: Sage Virtual Machine, download size 407 MB

2011-01-19 Thread Emil Widmann
A User on the sagelive Forum reports successfull run of the VM - image with qemu-kvm using arcane commandline ability: qemu-kvm -enable-kvm -drive file=vmsla1-0.vmdk,if=ide -m 1024 -vga vmware -net nic,model=i82551 -net user,hostfwd=tcp::8080-:80 just for the records, emil -- To post to this gr