[sage-devel] Re: UTF-8 and old terminals (new startup banner)

2013-07-10 Thread Volker Braun
Since evidently nobody who weighted in so far has actually tried the patch, here are screenshots of a few different terminals: http://boxen.math.washington.edu/home/vbraun/UTF8/ In particular, Putty works beautifully if you set it to UTF-8. And if you don't then you can still use Sage just fine

[sage-devel] absolute value in a p-adic quotient field

2013-07-10 Thread Paul Mercat
If I define 'a' like this: R.=PolynomialRing(Qp(2)); P=2*x^2+1; K.=P.root_field(); why 'a' has no attribute abs ? It's not a big problem, because it's easy to compute the absolute value from the norm, but it don't work : a.norm() gives TypeError: cannot construct an element of Full MatrixSpa

[sage-devel] Re: UTF-8 and old terminals (new startup banner)

2013-07-10 Thread Dima Pasechnik
On 2013-07-10, Volker Braun wrote: > --=_Part_2978_26839636.1373472114217 > Content-Type: text/plain; charset=ISO-8859-1 > > On Wednesday, July 10, 2013 10:27:08 AM UTC-4, Dima Pasechnik wrote: > >> ssh from strange terminals often garbles any kind of ascii art, leave >> alone being UTF-8 cle

Re: [sage-devel] Inverse a matrix over a ring with a unit determinant

2013-07-10 Thread David Roe
> I just add Sage-combinat-devel for the following issue : > > The first problem appearing when I try to invert is that a method : > change_variable_name rename the variable used in the charpoly : > > *** > def change_variable_name(self, var): >

Re: [sage-devel] Inverse a matrix over a ring with a unit determinant

2013-07-10 Thread Nicolas Borie
Le 10/07/2013 17:10, David Roe a écrit : I think the right solution is to define a method inverse_of_unit for general square matrices, implemented exactly as you suggest (it should go in matrix0.pyx). Unlike __invert__, this would not change base rings and would fail for matrices with non-un

[sage-devel] Re: UTF-8 and old terminals (new startup banner)

2013-07-10 Thread Volker Braun
On Wednesday, July 10, 2013 10:27:08 AM UTC-4, Dima Pasechnik wrote: > ssh from strange terminals often garbles any kind of ascii art, leave > alone being UTF-8 clean etc. > I've been doing "export TERM=vt100" much too much to trust > these things. > Do you actually have an example or are you

Re: [sage-devel] Inverse a matrix over a ring with a unit determinant

2013-07-10 Thread David Roe
I do not know how to inverse a matrix over a special ring. The ring is > SymmetricFunction(QQ).schur() . For information, this ring has no method > is_unit for its elements (perhaps required to invert a matrix with a unit > determinant...) and this ring has no fraction_field implemented. > I woul

Re: [sage-devel] Re: Taking a python int modulo a rational

2013-07-10 Thread David Roe
Note the following: sage: int(5).__mod__(4) NotImplemented sage: int(5).__mod__(QQ(2)) NotImplemented If a special method returns NotImplemented, Python will try calling the special method on the second input (with the arguments in the same order). In this case, the __mod__ methods of Integer and

[sage-devel] Inverse a matrix over a ring with a unit determinant

2013-07-10 Thread Nicolas Borie
Hello all, I do not know how to inverse a matrix over a special ring. The ring is SymmetricFunction(QQ).schur() . For information, this ring has no method is_unit for its elements (perhaps required to invert a matrix with a unit determinant...) and this ring has no fraction_field implemented.

[sage-devel] Re: UTF-8 and old terminals (new startup banner)

2013-07-10 Thread Dima Pasechnik
On 2013-07-08, Volker Braun wrote: > --=_Part_5933_16822679.1373249129839 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > Fr=E9d=E9ric Chapoton has written a patch at http://trac.sagemath.org/14733= >=20 > that will beautify the Sage startup ban