Ask Your Question

johndeas's profile - activity

2021-01-30 17:01:53 +0100 received badge  Student (source)
2018-10-27 00:11:37 +0100 received badge  Notable Question (source)
2016-01-05 01:48:26 +0100 received badge  Popular Question (source)
2011-02-15 15:23:02 +0100 asked a question Badly formatted Cayley Table

Hi,

I am completely new to Sage. To test the visualization of a subgroup of SL(2)a, I entered the following code:

G=SL(2,ZZ)
identity = matrix(ZZ, [[1,0], [0,1]])
G.cayley_table(names='elements',elements=[identity, -identity])

which outputs

              *      [1 0]
[0 1] [-1  0]
[ 0 -1]
               +--------------------------------
    [1 0]
[0 1]|     [1 0]
[0 1] [-1  0]
[ 0 -1]
[-1  0]
[ 0 -1]| [-1  0]
[ 0 -1]     [1 0]
[0 1]

Am I missing something to get a correctly displayed result ?

Thanks !