图片解析应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
450 B

  1. from sympy.combinatorics.group_constructs import DirectProduct
  2. from sympy.combinatorics.named_groups import CyclicGroup, DihedralGroup
  3. def test_direct_product_n():
  4. C = CyclicGroup(4)
  5. D = DihedralGroup(4)
  6. G = DirectProduct(C, C, C)
  7. assert G.order() == 64
  8. assert G.degree == 12
  9. assert len(G.orbits()) == 3
  10. assert G.is_abelian is True
  11. H = DirectProduct(D, C)
  12. assert H.order() == 32
  13. assert H.is_abelian is False