Re: [sage-support] Re: Set and real intervals

2010-12-10 Thread Laurent
It seems like it would be relatively easy to implement a Sage class for real intervals that represents finite unions of open, closed, half open, and unbounded intervals and implements union() and intersection() methods. I did it. I attach my piece of code. This is only python, but it is going

[sage-support] experimental vtk_meta_1 package (sage 4.6 ubuntu linux 10.04.1 LTS)

2010-12-10 Thread seb
I have tried installing this package without success on a source build of sage 4.6 - (I can forward the full build log to the maintainer if required - and it seems maybe some opengl libraries or some linkage might be missing - the only package to fail is vtk itsellf - relevant extract of log

[sage-support] Re: show()ing 3-tuples of matrices as images?

2010-12-10 Thread jvkersch
On Dec 9, 9:57 pm, Dan Drake dr...@kaist.edu wrote: *facepalm* That was stupid -- matrix_plot() already accepts numpy arrays of shape (x,y,3) and plots them as a color image exactly the way I want. No need to mess around with pylab.imshow(). Sorry for the noise. Actually, your message

[sage-support] Re: experimental vtk_meta_1 package (sage 4.6 ubuntu linux 10.04.1 LTS)

2010-12-10 Thread Jaap Spies
seb wrote: I have tried installing this package without success on a source build of sage 4.6 - (I can forward the full build log to the maintainer if required - and it seems maybe some opengl libraries or some linkage might be missing - the only package to fail is vtk itsellf - relevant

Re: [sage-support] Re: show()ing 3-tuples of matrices as images?

2010-12-10 Thread Dan Drake
On Fri, 10 Dec 2010 at 10:09AM -0800, jvkersch wrote: Actually, your message gave me some good ideas of how to visualize the SVD decomposition in my linear algebra class, so not noise at all :) I'll publish my worksheet when I'm finished and post back here. Dan -- --- Dan Drake -

[sage-support] Confused about rmul and lmul

2010-12-10 Thread Kwankyu
Hi, Below is a passage in the Reference manual on the coercion model: If R is the base of S (as in the first example), simply implement _rmul_ and/or _lmul_ on the Elements of S. In this case r * s gets handled as s._rmul_(r) and s * r as s._lmul_(r). The argument to _rmul_ and _lmul_ are