Commit 35efc7e2 authored by Adam P. Goucher's avatar Adam P. Goucher

Detect symmetry group of 24-cell

parent 190f6fa5
Pipeline #49969784 passed with stages
in 7 minutes and 7 seconds
......@@ -42,6 +42,19 @@ class TestTreeduce(unittest.TestCase):
self.assertEqual(len(mp), 48)
def test_24cell(self):
Tests that the vertex set of the 24-cell has a symmetry group of
order 1152 as expected.
t = [-1, 0, 1]
d4 = [(w, x, y, z) for x in t for y in t for z in t for w in t if w*w + x*x + y*y + z*z == 2]
self.assertEqual(len(set(d4)), 24)
mp = list(automorph.matperms(d4))
self.assertEqual(len(mp), 1152)
def test_reduce(self):
Tests that we can recognise an hexagonal rule embedded as a Moore CA.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment