#5093: [with patch, needs review] rewrite fast_float to support more datatypes
------------------------------+---------------------------------------------
Reporter: cwitty | Owner: cwitty
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-3.4.2
Component: basic arithmetic | Keywords:
------------------------------+---------------------------------------------
Comment(by cwitty):
OK, I can't fix this so that fast_callable matches the behavior of
multivariate polynomials while keeping my code generic, because Singular-
based polynomials return values of their base_ring in this case and
polydict polynomials return values with the same parent as their first
argument (falling back to the base ring if the argument has no parent).
{{{
K.<x,y> = QQ[]
type(K(0)(0, 0))
type(K(0)(0r, 0r))
type(K(0)(RIF(0), RIF(0)))
type(K(0)(0.0, 0.0))
K.<x,y> = RIF[]
type(K(0)(0, 0))
type(K(0)(0r, 0r))
type(K(0)(RIF(0), RIF(0)))
type(K(0)(0.0, 0.0))
}}}
My plan is to use the former behavior for all multivariate polynomials, so
it won't exactly match polydict polynomials; is that good enough? (That's
much easier to implement.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5093#comment:19>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---