ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 18 Sep 2014 17:11:22 +0200An imperfection about the output format of group algebrahttps://ask.sagemath.org/question/24188/an-imperfection-about-the-output-format-of-group-algebra/ Hi, guys. I am not sure that whether there has some else came across the same problem with me. I wanted to compute some formula in the algebra of linear group GL(2,F_q) for some prime power q. Then I asked sage to print the result for me, the format was quite weird. Each row of the 2X2 matrix got printed in two lines. It was something like:
2*[1 0]
[0 1] + [1 0]
[1 1] + [ 1 0]
[g^2 + 1 1] + [ 1 0]
[g^2 g] + [ 1 0]
[g^2 + 1 g] + [ 1 0]
[ 0 g^2] + [ 1 0]
[g^2 g^2] + [ 1 0]
[ 1 g^2 + 1] + [ 1 0]
[ g g^2 + 1] + [g 0]
[g 1] + [ g 0]
[ 1 g + 1]
I think the results can be printed in a more perfect way.
Thu, 18 Sep 2014 16:55:36 +0200https://ask.sagemath.org/question/24188/an-imperfection-about-the-output-format-of-group-algebra/Answer by Dianyan Xiao for <p>Hi, guys. I am not sure that whether there has some else came across the same problem with me. I wanted to compute some formula in the algebra of linear group GL(2,F_q) for some prime power q. Then I asked sage to print the result for me, the format was quite weird. Each row of the 2X2 matrix got printed in two lines. It was something like:</p>
<pre><code> 2*[1 0]
[0 1] + [1 0]
[1 1] + [ 1 0]
[g^2 + 1 1] + [ 1 0]
[g^2 g] + [ 1 0]
[g^2 + 1 g] + [ 1 0]
[ 0 g^2] + [ 1 0]
[g^2 g^2] + [ 1 0]
[ 1 g^2 + 1] + [ 1 0]
[ g g^2 + 1] + [g 0]
[g 1] + [ g 0]
[ 1 g + 1]
</code></pre>
<p>I think the results can be printed in a more perfect way.</p>
https://ask.sagemath.org/question/24188/an-imperfection-about-the-output-format-of-group-algebra/?answer=24189#post-id-24189I think it would be better if I can upload the picture, because the format changes when I paste the texts here. However, I can not upload the picture of the result now. I think you guys may have a try about that.Thu, 18 Sep 2014 16:59:26 +0200https://ask.sagemath.org/question/24188/an-imperfection-about-the-output-format-of-group-algebra/?answer=24189#post-id-24189Comment by kcrisman for <p>I think it would be better if I can upload the picture, because the format changes when I paste the texts here. However, I can not upload the picture of the result now. I think you guys may have a try about that.</p>
https://ask.sagemath.org/question/24188/an-imperfection-about-the-output-format-of-group-algebra/?comment=24191#post-id-24191You should be able to cut and paste it exactly from your terminal/notebook, but you'll have to then highlight the results and click the little "101010101" button you will see to keep it formatted as code.Thu, 18 Sep 2014 17:11:22 +0200https://ask.sagemath.org/question/24188/an-imperfection-about-the-output-format-of-group-algebra/?comment=24191#post-id-24191