#17130: Coercion after _eval_() in symbolic functions
-----------------------------+------------------------
       Reporter:  jdemeyer   |        Owner:
           Type:  defect     |       Status:  new
       Priority:  major      |    Milestone:  sage-6.4
      Component:  symbolics  |   Resolution:
       Keywords:             |    Merged in:
        Authors:             |    Reviewers:
Report Upstream:  N/A        |  Work issues:
         Branch:             |       Commit:
   Dependencies:             |     Stopgaps:
-----------------------------+------------------------
Description changed by jdemeyer:

Old description:

> This uses coercion correctly:
> {{{
> sage: bessel_Y._eval_(RealField(300)(1), 1.0)
> -0.781212821300289
> }}}
>
> However, it seems that `__call__()` coerces this result back to the first
> parent, giving false precision:
> {{{
> sage: bessel_Y(RealField(300)(1), 1.0)
> -0.781212821300288684511770043172873556613922119140625000000000000000000000000000000000000000
> }}}

New description:

 This uses coercion correctly:
 {{{
 sage: bessel_Y._eval_(RealField(300)(1), 1.0)
 -0.781212821300289
 }}}

 However, it seems that `__call__()` coerces this result back to the first
 parent, giving false precision:
 {{{
 sage: bessel_Y(RealField(300)(1), 1.0)
 
-0.781212821300288684511770043172873556613922119140625000000000000000000000000000000000000000
 }}}

 Same issue with functions which are evaluated using Maxima, which does not
 support arbitrary precision:
 {{{
 sage: R=RealField(300); elliptic_eu(R(1/2), R(1/8))
 
0.495073732023201484864216581627260893583297729492187500000000000000000000000000000000000000
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/17130#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to