Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (17 sloc) 0.544 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/usr/bin/python -Wall

# ================================================================
# Please see LICENSE.txt in the same directory as this file.
# John Kerl
# kerl.john.r@gmail.com
# 2007-05-31
# ================================================================

# Group module for the dihedral group on n vertices.

import dih_tm

def get_elements_str(params_string):
n = dih_tm.params_from_string(params_string)
elts = []
for i in range(0, n):
for j in range(0, 2):
elt = dih_tm.dih_t(i, j, n)
elts.append(elt)
return elts
Something went wrong with that request. Please try again.