For me, RBF(stieltjes(1)) succeeds on sage-9.4 on linux and fails on
sage-9.4-beta4 on OS X with the following error:
TypeError                                 Traceback (most recent call last)
<ipython-input-10-bd365cacedf1> in <module>
----> 1 RBF(stieltjes(Integer(1)))

~/sage/sage-9.4.beta0/local/lib/python3.9/site-packages/sage/structure/parent.pyx
in sage.structure.parent.Parent.__call__
(build/cythonized/sage/structure/parent.c:9338)()
    896         if mor is not None:
    897             if no_extra_args:
--> 898                 return mor._call_(x)
    899             else:
    900                 return mor._call_with_args(x, args, kwds)

~/sage/sage-9.4.beta0/local/lib/python3.9/site-packages/sage/structure/coerce_maps.pyx
in sage.structure.coerce_maps.NamedConvertMap._call_
(build/cythonized/sage/structure/coerce_maps.c:6042)()
    285             raise TypeError("Cannot coerce {} to {}".format(x, C))
    286         cdef Map m
--> 287         cdef Element e = method(C)
    288         if e is None:
    289             raise RuntimeError("BUG in coercion model: {} method of
{} returned None".format(self.method_name, type(x)))

~/sage/sage-9.4.beta0/local/lib/python3.9/site-packages/sage/symbolic/expression.pyx
in sage.symbolic.expression.Expression._arb_
(build/cythonized/sage/symbolic/expression.cpp:11819)()
   1622         # Typically more informative and consistent than the
exceptions that
   1623         # would propagate
-> 1624         raise TypeError("unable to convert {!r} to a {!s}".format(
   1625                 self, R.element_class.__name__))
   1626

TypeError: unable to convert stieltjes(1) to a RealBall

I'm not sure what's going on, but I wonder if it's OS dependent.
David

On Tue, Nov 9, 2021 at 2:41 PM William Stein <[email protected]> wrote:

> It does seem to work for me on sage-9.4 on cocalc, so can you provide
> a complete log of what you're doing, etc.?
>
> ~$ sage
> ┌────────────────────────────────────────────────────────────────────┐
> │ SageMath version 9.4, Release Date: 2021-08-22                     │
> │ Using Python 3.9.5. Type "help()" for help.                        │
> └────────────────────────────────────────────────────────────────────┘
> sage: RBF(stieltjes(1))
> [-0.07281584548367673 +/- 2.30e-18]
> sage: RBF(1/sqrt(2))
> [0.707106781186547 +/- 7.95e-16]
> sage:
> Exiting Sage (CPU time 0m0.24s, Wall time 0m39.76s).
> ~$ uname -a
> Linux project-2cc650fd-1b95-467b-b748-75b421914dae 5.11.0-1020-gcp
> #22~20.04.1-Ubuntu SMP Tue Sep 21 10:54:26 UTC 2021 x86_64 x86_64
> x86_64 GNU/Linux
>
>
> On Tue, Nov 9, 2021 at 11:34 AM [email protected]
> <[email protected]> wrote:
> >
> > PS. I have the same issue with RBF(1/sqrt(2)).
> >
> > Le mardi 9 novembre 2021 à 20:31:33 UTC+1, [email protected] a écrit
> :
> >>
> >> Hi,
> >>
> >> RBF(stieltjes(1)) no longer works. It now gives the error message
> >>
> >> TypeError: unable to convert stieltjes(1) to a RealBall
> >>
> >> I realize that this means it most likely wasn't working right before
> (the code must have worked because Sage fell back on SymbolicRing ->
> RealField -> RBF, which shouldn't happen). I also realize that I could type
> RBF(RIF(stieltjes(1)), but that's a stopgap measure that shouldn't be
> necessary, since stieltjes(1) is in fact implemented in ARB.
> >>
> >> version: Sagemath 9.3 on an Intel Mac Mini (Mac OS Monterrey)
> >> or Sagemath 9.4 on cocalc.
> >>
> >> Best
> >> Harald
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sage-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/0500174a-66ab-4491-aad1-6727af69cbbbn%40googlegroups.com
> .
>
>
>
> --
> William (http://wstein.org)
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CACLE5GAOv5yXgrrL81xZKKPCJc%2BtWh1w1tmPV7-zE0NnfQHq7g%40mail.gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAChs6_mP09FX3sTLne045M9EkXEzm9Yey1xDe-Ox%3DsS7-gEDiQ%40mail.gmail.com.

Reply via email to