Skip to content

RealDoubleFieldElement without GSL: Add missing methods#2289

Draft
mkoeppe wants to merge 10 commits intomainfrom
t/32779/realdoublefieldelement_without_gsl__add_missing_methods
Draft

RealDoubleFieldElement without GSL: Add missing methods#2289
mkoeppe wants to merge 10 commits intomainfrom
t/32779/realdoublefieldelement_without_gsl__add_missing_methods

Conversation

@mkoeppe
Copy link
Copy Markdown
Member

@mkoeppe mkoeppe commented Mar 21, 2026

@mkoeppe mkoeppe marked this pull request as draft March 21, 2026 23:14
@mkoeppe
Copy link
Copy Markdown
Member Author

mkoeppe commented Mar 21, 2026

We should check whether we can move sage/rings/real_double_element_gsl.p* from passagemath-modules to passagemath-gsl with this.

@mkoeppe
Copy link
Copy Markdown
Member Author

mkoeppe commented Mar 22, 2026

log is missing

**********************************************************************
File "sage/functions/transcendental.py", line 585, in sage.functions.transcendental.DickmanRho.power_series
Failed example:
    f = dickman_rho.power_series(2, 20); f
Exception raised:
    Traceback (most recent call last):
      File "/Users/mkoeppe/s/sage/sage-rebasing/pkgs/sagemath-modules/.tox/sagepython-sagewheels-nopypi-norequirements/lib/python3.14/site-packages/sage/doctest/forker.py", line 742, in _run
        self.compile_and_execute(example, compiler, test.globs)
        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/mkoeppe/s/sage/sage-rebasing/pkgs/sagemath-modules/.tox/sagepython-sagewheels-nopypi-norequirements/lib/python3.14/site-packages/sage/doctest/forker.py", line 1166, in compile_and_execute
        exec(compiled, globs)
        ~~~~^^^^^^^^^^^^^^^^^
      File "<doctest sage.functions.transcendental.DickmanRho.power_series[0]>", line 1, in <module>
        f = dickman_rho.power_series(Integer(2), Integer(20)); f
      File "/Users/mkoeppe/s/sage/sage-rebasing/pkgs/sagemath-modules/.tox/sagepython-sagewheels-nopypi-norequirements/lib/python3.14/site-packages/sage/functions/transcendental.py", line 594, in power_series
        return self._compute_power_series(n, abs_prec, cache_ring=None)
               ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/mkoeppe/s/sage/sage-rebasing/pkgs/sagemath-modules/.tox/sagepython-sagewheels-nopypi-norequirements/lib/python3.14/site-packages/sage/functions/transcendental.py", line 636, in _compute_power_series
        f = self._compute_power_series(n-1, abs_prec, cache_ring)
      File "/Users/mkoeppe/s/sage/sage-rebasing/pkgs/sagemath-modules/.tox/sagepython-sagewheels-nopypi-norequirements/lib/python3.14/site-packages/sage/functions/transcendental.py", line 627, in _compute_power_series
        nterms = (RDF(abs_prec) * RDF(2).log()/RDF(3).log()).ceil()
                                  ^^^^^^^^^^
      File "sage/structure/element.pyx", line 495, in sage.structure.element.Element.__getattr__
        return self.getattr_from_category(name)
      File "sage/structure/element.pyx", line 508, in sage.structure.element.Element.getattr_from_category
        return getattr_from_other_class(self, cls, name)
      File "sage/cpython/getattr.pyx", line 363, in sage.cpython.getattr.getattr_from_other_class
        raise AttributeError(dummy_error_message)
    AttributeError: 'sage.rings.real_double.RealDoubleElement' object has no attribute '__dict__'

gamma is missing

File "sage/functions/gamma.py", line 144, in sage.functions.gamma.Function_gamma.__init__
Failed example:
    RDF(-1).gamma()                                                       # needs sage.rings.real_mpfr
Exception raised:
    Traceback (most recent call last):
      File "/Users/mkoeppe/s/sage/sage-rebasing/pkgs/sagemath-modules/.tox/sagepython-sagewheels-nopypi-norequirements/lib/python3.14/site-packages/sage/doctest/forker.py", line 742, in _run
        self.compile_and_execute(example, compiler, test.globs)
        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/Users/mkoeppe/s/sage/sage-rebasing/pkgs/sagemath-modules/.tox/sagepython-sagewheels-nopypi-norequirements/lib/python3.14/site-packages/sage/doctest/forker.py", line 1166, in compile_and_execute
        exec(compiled, globs)
        ~~~~^^^^^^^^^^^^^^^^^
      File "<doctest sage.functions.gamma.Function_gamma.__init__[31]>", line 1, in <module>
        RDF(-Integer(1)).gamma()                                                       # needs sage.rings.real_mpfr
        ^^^^^^^^^^^^^^^^^^^^^^
      File "sage/structure/element.pyx", line 495, in sage.structure.element.Element.__getattr__
        return self.getattr_from_category(name)
      File "sage/structure/element.pyx", line 508, in sage.structure.element.Element.getattr_from_category
        return getattr_from_other_class(self, cls, name)
      File "sage/cpython/getattr.pyx", line 363, in sage.cpython.getattr.getattr_from_other_class
        raise AttributeError(dummy_error_message)
    AttributeError: 'sage.rings.real_double.RealDoubleElement' object has no attribute '__dict__'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RealDoubleFieldElement without GSL: Add missing methods

1 participant