Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3118 by asmeu...@gmail.com: Subclass of Number for Rational,
Integer, and Float
http://code.google.com/p/sympy/issues/detail?id=3118
This came up in issue 3059. It may be useful to differentiate via a new
subclass Integer, Rational, and Float from the rest of Number, i.e., these
are the objects such that, when added or multiplied by a second, return a
third such object. In other words, if a and b are Integer, Rational, or
Float, then a + b and a*b are as well. This concept is useful because in
Mul.flatten, these terms are kept separately as the coeff term, and
similarly in Add.flatten. This would also make things clearer about
as_coeff_mul/as_coeff_Mul (see issue 2307).
Any idea for a name for this. Given the historical use, something like
CoeffNumber might be a reasonable name, though it actually doesn't sound
that great.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.