Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jplab committed Oct 29, 2019
1 parent 5e37f0e commit 6cb1552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/geometry/polyhedron/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -2700,14 +2700,14 @@ def one_hundred_twenty_cell(self, exact=True, backend=None, construction='coxete
# The 96 even permutations of [0,±1/phi^2,±1,±phi^2]
# The 96 even permutations of [0,±1/phi,±phi,±sqrt(5)]
# The 192 even permutations of [±1/phi,±1,±phi,±2]
import itertools import chain
from itertools import chain
even_perm_vectors = [[[0],[phi_inv**2,-phi_inv**2],[1,-1],[-(phi**2),phi**2]],
[[0],[phi_inv,-phi_inv],[phi,-phi],[-sqrt5,sqrt5]],
[[phi_inv,-phi_inv],[1,-1],[phi,-phi],[-2,2]]]
even_perm = AlternatingGroup(4)
for vect in even_perm_vectors:
cp = cartesian_product(vect)
# The cartesian product creates duplicates, so we reduce it:
# The group action creates duplicates, so we reduce it:
verts += chain.from_iterable([p(tuple(c)) for p in even_perm] for c in cp)

return Polyhedron(vertices=verts, base_ring=base_ring, backend=backend)
Expand Down

0 comments on commit 6cb1552

Please sign in to comment.