コード例 #1
0
ファイル: contfrac.py プロジェクト: BlairArchibald/sage
        def __init__(self, x1, x2=None):
            r"""
            INPUT:

            - ``parent`` - the parent

            - ``x`` - the quotients of the continued fraction

            TESTS::

                sage: TestSuite(CFF.an_element()).run()
            """
            ContinuedFraction_periodic.__init__(self, x1)
            FieldElement.__init__(self, parent=CFF)
コード例 #2
0
ファイル: contfrac.py プロジェクト: sagemathinc/smc-sage
        def __init__(self, x1, x2=None):
            r"""
            INPUT:

            - ``parent`` - the parent

            - ``x`` - the quotients of the continued fraction

            TESTS::

                sage: TestSuite(CFF.an_element()).run()
            """
            ContinuedFraction_periodic.__init__(self, x1)
            FieldElement.__init__(self, parent=CFF)
コード例 #3
0
ファイル: contfrac.py プロジェクト: manguluka/sage
        def __init__(self, x1, x2=None):
            r"""
            INPUT:

            - ``parent`` - the parent

            - ``x`` - the quotients of the continued fraction

            TESTS::

                sage: TestSuite(CFF.an_element()).run()
            """
            deprecation(20012, "CFF (ContinuedFractionField) is deprecated, use QQ instead")
            ContinuedFraction_periodic.__init__(self, x1)
            FieldElement.__init__(self, parent=CFF)