Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (17 sloc) 584 Bytes
#!/usr/bin/python -Wall
# ================================================================
# Please see LICENSE.txt in the same directory as this file.
# John Kerl
# 2007-05-31
# ================================================================
# Group module for the dihedral group parameterized by m and n.
import metacyc_tm
def get_elements_str(params_string):
[p, q, t] = metacyc_tm.params_from_string(params_string)
pq = p * q
elts = []
for i in range(0, p):
for j in range(0, q):
elts.append(metacyc_tm.metacyc_t(i, j, p, q, t))
return elts
Jump to Line
Something went wrong with that request. Please try again.