当前位置: 首页>>代码示例>>Python>>正文


Python CartanType_standard_finite.__init__方法代码示例

本文整理汇总了Python中cartan_type.CartanType_standard_finite.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python CartanType_standard_finite.__init__方法的具体用法?Python CartanType_standard_finite.__init__怎么用?Python CartanType_standard_finite.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cartan_type.CartanType_standard_finite的用法示例。


在下文中一共展示了CartanType_standard_finite.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self):
        """
        EXAMPLES::

            sage: ct = CartanType(['G',2])
            sage: ct
            ['G', 2]
            sage: ct._repr_(compact = True)
            'G2'

            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_crystallographic()
            True
            sage: ct.is_simply_laced()
            False
            sage: ct.dual()
            ['G', 2] relabelled by {1: 2, 2: 1}
            sage: ct.affine()
            ['G', 2, 1]

        TESTS::

            sage: TestSuite(ct).run()
        """
        CartanType_standard_finite.__init__(self, "G", 2)
开发者ID:Babyll,项目名称:sage,代码行数:30,代码来源:type_G.py

示例2: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self, n):
        """
        EXAMPLES::

            sage: ct = CartanType(['H',3])
            sage: ct
            ['H', 3]
            sage: ct._repr_(compact = True)
            'H3'
            sage: ct.rank()
            3

            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_affine()
            False
            sage: ct.is_crystallographic()
            False
            sage: ct.is_simply_laced()
            False

        TESTS::

            sage: TestSuite(ct).run()
        """
        assert n in [3, 4]
        CartanType_standard_finite.__init__(self, "H", n)
开发者ID:CETHop,项目名称:sage,代码行数:31,代码来源:type_H.py

示例3: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self, n):
        """
        EXAMPLES::

            sage: ct = CartanType(['A',4])
            sage: ct
            ['A', 4]
            sage: ct._repr_(compact = True)
            'A4'

            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_affine()
            False
            sage: ct.is_crystallographic()
            True
            sage: ct.is_simply_laced()
            True
            sage: ct.affine()
            ['A', 4, 1]
            sage: ct.dual()
            ['A', 4]

        TESTS::

            sage: TestSuite(ct).run()
        """
        assert n >= 0
        CartanType_standard_finite.__init__(self, "A", n)
开发者ID:Etn40ff,项目名称:sage,代码行数:33,代码来源:type_A.py

示例4: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self):
        """
        EXAMPLES::

            sage: ct = CartanType(['F',4])
            sage: ct
            ['F', 4]
            sage: ct._repr_(compact = True)
            'F4'

            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_crystalographic()
            True
            sage: ct.is_simply_laced()
            False
            sage: ct.dual()
            ['F', 4]^*
            sage: ct.affine()
            ['F', 4, 1]

        TESTS::

            sage: ct == loads(dumps(ct))
            True
        """
        CartanType_standard_finite.__init__(self, "F", 4)
开发者ID:sageb0t,项目名称:testsage,代码行数:31,代码来源:type_F.py

示例5: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self, n):
        """
        EXAMPLES::
        
            sage: ct = CartanType(['I',5])
            sage: ct
            ['I', 5]
            sage: ct._repr_(compact = True)
            'I5'
            sage: ct.rank()
            2
            sage: ct.index_set()
            [1, 2]

            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_affine()
            False
            sage: ct.is_crystalographic()
            False
            sage: ct.is_simply_laced()
            False

        TESTS::

            sage: ct == loads(dumps(ct))
            True
        """
        assert n >= 1
        CartanType_standard_finite.__init__(self, "I", n)
开发者ID:bgxcpku,项目名称:sagelib,代码行数:34,代码来源:type_I.py

示例6: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self, n):
        """
        EXAMPLES::

            sage: ct = CartanType(['E',6])
            sage: ct
            ['E', 6]
            sage: ct._repr_(compact = True)
            'E6'
            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_affine()
            False
            sage: ct.is_crystalographic()
            True
            sage: ct.is_simply_laced()
            True
            sage: ct.affine()
            ['E', 6, 1]
            sage: ct.dual()
            ['E', 6]

        TESTS:
            sage: ct == loads(dumps(ct))
            True
        """
        assert n >= 6 and n <= 8
        CartanType_standard_finite.__init__(self, "E", n)
开发者ID:sageb0t,项目名称:testsage,代码行数:32,代码来源:type_E.py

示例7: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self, n):
        """
        EXAMPLES::

            sage: ct = CartanType(['E',6])
            sage: ct
            ['E', 6]
            sage: ct._repr_(compact = True)
            'E6'
            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_affine()
            False
            sage: ct.is_crystallographic()
            True
            sage: ct.is_simply_laced()
            True
            sage: ct.affine()
            ['E', 6, 1]
            sage: ct.dual()
            ['E', 6]

        TESTS::

            sage: TestSuite(ct).run()
        """
        if n < 6 or n > 8:
            raise ValueError("Invalid Cartan Type for Type E")
        CartanType_standard_finite.__init__(self, "E", n)
开发者ID:BlairArchibald,项目名称:sage,代码行数:33,代码来源:type_E.py

示例8: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self, n):
        """
        EXAMPLES::

            sage: ct = CartanType(['D',4])
            sage: ct
            ['D', 4]
            sage: ct._repr_(compact = True)
            'D4'

            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_crystalographic()
            True
            sage: ct.is_simply_laced()
            True
            sage: ct.dual()
            ['D', 4]
            sage: ct.affine()
            ['D', 4, 1]

            sage: ct = CartanType(['D',2])
            sage: ct.is_irreducible()
            False
            sage: ct.dual()
            ['D', 2]
            sage: ct.affine()
            Traceback (most recent call last):
            ...
            ValueError: ['D', 2, 1] is not a valid cartan type


        TESTS:
            sage: ct == loads(dumps(ct))
            True
        """
        assert n >= 2
        CartanType_standard_finite.__init__(self, "D", n)
        if n >= 3:
            self._add_abstract_superclass(CartanType_simple)
开发者ID:chos9,项目名称:sage,代码行数:44,代码来源:type_D.py

示例9: __init__

# 需要导入模块: from cartan_type import CartanType_standard_finite [as 别名]
# 或者: from cartan_type.CartanType_standard_finite import __init__ [as 别名]
    def __init__(self, n):
        """
        EXAMPLES::
        
            sage: ct = CartanType(['B',4])
            sage: ct
            ['B', 4]
            sage: ct._repr_(compact = True)
            'B4'

            sage: ct.is_irreducible()
            True
            sage: ct.is_finite()
            True
            sage: ct.is_affine()
            False
            sage: ct.is_crystalographic()
            True
            sage: ct.is_simply_laced()
            False
            sage: ct.affine()
            ['B', 4, 1]
            sage: ct.dual()
            ['C', 4]

            sage: ct = CartanType(['B',1])
            sage: ct.is_simply_laced()
            True
            sage: ct.affine()
            ['B', 1, 1]

        TESTS::

            sage: ct == loads(dumps(ct))
            True
        """
        assert n >= 1
        CartanType_standard_finite.__init__(self, "B", n)
        if n == 1:
            self._add_abstract_superclass(CartanType_simply_laced)
开发者ID:bgxcpku,项目名称:sagelib,代码行数:42,代码来源:type_B.py


注:本文中的cartan_type.CartanType_standard_finite.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。