Module garoupa.algebra.dihedral.ds

Classes

class Ds (j, n)
Expand source code
class Ds(Element):
    def __init__(self, j, n):
        super().__init__(j, 2 * n)
        self.j = j
        self.n = n
        self.name = self.name.split("_")[0] + str(self.j)

    def __mul__(self, other):
        j = (self.j - other.j) % self.n
        if isinstance(other, Ds):
            from garoupa.algebra.dihedral.dr import Dr

            return Dr(j, self.n)
        else:
            return Ds(j, self.n)

Element(i: int, order: int)

Ancestors

Inherited members