#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:
-----------------------------+------------------------

Comment (by kcrisman):

 Just to clarify, you mean that the precision of the less precise input
 (`1.0`) is used, but then for some reason this is sent back to the
 precision of the first one?

 My guess is that
 [http://git.sagemath.org/sage.git/tree/src/sage/symbolic/function.pyx#n919
 this line] is to blame.
 {{{
         # we want to convert the result to the original parent if the
 input
         # is not exact, so we store the parent here
         org_parent = parent_c(args[0])
 }}}
 I don't have time right now to check this out, but I would not be at all
 surprised.  Or it's the `super` call just above that, I don't myself 100%
 understand how the inheritance works, and I keep forgetting when `eval`
 versus `call` are called in the functions.  You could try other functions
 with multiple arguments and see if the same problem happens, or try to
 reverse the precisions and see what happens to test this hypothesis.

--
Ticket URL: <http://trac.sagemath.org/ticket/17130#comment:1>
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