Changes between Version 1 and Version 2 of Ticket #18787


Ignore:
Timestamp:
06/25/15 12:11:37 (4 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18787 – Description

    v1 v2  
    22
    33{{{
    4 sage: _ =var('A,B,C,D')
    5 sage: S = matrix([[1+3*A,3*B],[3*C,1+3*D]])
    6 sage: R = Zmod(9)
    7 sage: g = matrix(R,2,[[2,1],[2,6]])
    8 sage: gi = matrix(R,2,[[6,8],[7,2]])
    9 sage: g*S*gi
    10 [        6*B + 3*D + 1 3*A + 3*B + 6*C + 6*D]
    11 [            0*A + 0*D         3*A + 0*D + 1]
     4sage: _ = var('A,B,C,D')
     5sage: (B + 3*D)*Zmod(9)(6)
     60*D
    127}}}
    13 
    14 While we have (look at the second line):
    15 
    16 {{{
    17 sage: P.<A,B,C,D> = ZZ[]
    18 sage: S = matrix([[1+3*A,3*B],[3*C,1+3*D]])
    19 sage: R = Zmod(9)
    20 sage: g = matrix(R,2,[[2,1],[2,6]])
    21 sage: gi = matrix(R,2,[[6,8],[7,2]])
    22 sage: g*S*gi
    23 [        6*B + 3*D + 1 3*A + 3*B + 6*C + 6*D]
    24 [                  6*B         3*A + 3*B + 1]
    25 }}}