#15500: is_integer method is missing on integers
-------------------------------------+-------------------------------------
Reporter: ppurka | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: algebra | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/Rajesh_Veeranki/ticket/15500 | 4c4826e0a769950c2a212349c77a13a6cb7767a8
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by ppurka):
This needs more work actually, so that other fields also give proper
results. For example:
{{{
sage: a = RR(3)
sage: a = AA(3)
sage: a = RDF(3)
}}}
and so on.. The correct fix in those fields would be either to have a
function alias if `is_integral` is already defined in the field (for
example `QQ`)
{{{
is_integer = is_integral
}}}
or have a code like this in that field
{{{
def is_integer(self):
return self in ZZ
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/15500#comment:4>
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/groups/opt_out.