The recent patches making action verbs got me thinking about fraction and as_numer_denom and I wonder as we approach 0.7 and the breaking of backward compatability if we might make a change considering the following:
- The action verbs make wrappers to common methods in simplify. - fraction is a very low level function to return the numerator and denominator of an *unprocessed expression* so fraction (1/x+1/y)/b gives 1/x+1/y, b. - fraction has no equivalent method but there are two functions, numer and denom that give the corresponding parts of the fraction tuple. - as_numer_denom is a method with no functional equivalent - as_numer_denom is a denesting function; it is doing the high-level fraction processing to turn (1/x+1/y)/b into (x+y)/(b*x*y) I would recommend that fraction, numer, denom be made the high-level functions with corresponding action verbs and that as_numer_denom be changed back to a low level function that gives -- p and q of rationals; -- a negative-free power when alone or in a Mul unless "exact=True" in which case if the sign can be determined it will be put in the appropriate position (e.g. exp(-neg) -> exp(-neg), 1 rather than 1, exp(neg); -- in all other cases, just the expression. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.