# ================================================================ # This software is released under the terms of the GNU GPL. # Please see LICENSE.txt in the same directory as this file. # John Kerl # [email protected] # 2007-05-31 # ================================================================ import pmtc_tm import pmti_tm import copy # ---------------------------------------------------------------- s = pmtc_tm.from_cycles([[1, 2, 3], [4, 5]], 6) print s s = pmtc_tm.from_cycle([1, 2, 3], 6) print s s = pmti_tm.from_cycles([[1, 2, 3], [4, 5]], 6) print s s = pmti_tm.from_cycle([1, 2, 3], 6) print s # ---------------------------------------------------------------- s = pmtc_tm.from_cycle([1, 2, 3], 6) ct = s.cycle_type() print s, ct s = pmtc_tm.from_cycles([[1, 2, 3], [4, 5]], 6) ct = s.cycle_type() print s, ct s = pmtc_tm.from_cycles([[1, 2], [3], [4, 5]], 6)
# ================================================================ # Please see LICENSE.txt in the same directory as this file. # John Kerl # [email protected] # 2007-05-31 # ================================================================ import pmtc_tm import pmti_tm import copy # ---------------------------------------------------------------- s = pmtc_tm.from_cycles([[1,2,3],[4,5]], 6) print s s = pmtc_tm.from_cycle([1,2,3], 6) print s s = pmti_tm.from_cycles([[1,2,3],[4,5]], 6) print s s = pmti_tm.from_cycle([1,2,3], 6) print s # ---------------------------------------------------------------- s = pmtc_tm.from_cycle([1,2,3], 6); ct = s.cycle_type(); print s, ct s = pmtc_tm.from_cycles([[1,2,3],[4,5]], 6); ct = s.cycle_type(); print s, ct s = pmtc_tm.from_cycles([[1,2],[3],[4,5]], 6); ct = s.cycle_type(); print s, ct print print "random pmtcs:" for i in range(0, 10):
# 2007-05-31 # ================================================================ import pmtc_tm import snc_gm import cgpalg_tm import copy # ---------------------------------------------------------------- # 559B final problem 1a. print "-" * 64 #S3 = snc_gm.get_elements(3) s1 = pmtc_tm.from_cycle([1], 3) s12 = pmtc_tm.from_cycle([1,2], 3) s13 = pmtc_tm.from_cycle([1,3], 3) s23 = pmtc_tm.from_cycle([2,3], 3) s123 = pmtc_tm.from_cycle([1,2,3], 3) s132 = pmtc_tm.from_cycle([1,3,2], 3) S3 = [s1, s12, s13, s23, s123, s132] s1 = pmtc_tm.from_cycle([1], 3) s12 = pmtc_tm.from_cycle([1,2], 3) s13 = pmtc_tm.from_cycle([1,3], 3) P = cgpalg_tm.cgpalg_t([[1,s1], [ 1,s12]]) Q = cgpalg_tm.cgpalg_t([[1,s1], [-1,s13]]) E = P*Q
# 2007-05-31 # ================================================================ import pmtc_tm import snc_gm import cgpalg_tm import copy # ---------------------------------------------------------------- # 559B final problem 1a. print "-" * 64 #S3 = snc_gm.get_elements(3) s1 = pmtc_tm.from_cycle([1], 3) s12 = pmtc_tm.from_cycle([1, 2], 3) s13 = pmtc_tm.from_cycle([1, 3], 3) s23 = pmtc_tm.from_cycle([2, 3], 3) s123 = pmtc_tm.from_cycle([1, 2, 3], 3) s132 = pmtc_tm.from_cycle([1, 3, 2], 3) S3 = [s1, s12, s13, s23, s123, s132] s1 = pmtc_tm.from_cycle([1], 3) s12 = pmtc_tm.from_cycle([1, 2], 3) s13 = pmtc_tm.from_cycle([1, 3], 3) P = cgpalg_tm.cgpalg_t([[1, s1], [1, s12]]) Q = cgpalg_tm.cgpalg_t([[1, s1], [-1, s13]]) E = P * Q