It looks like fraction takes into account assumptions, but on the other hand, it doesn't do any rewriting of the expression to combine sums of fractions (e.g., fraction(1/x + 1/y) gives (1/x + 1/y, 1), whereas (1/x + 1/y).as_numer_denom() gives (x + y, x*y)).
Aaron Meurer On Thu, Mar 26, 2015 at 12:09 PM, Paul Royik <[email protected]> wrote: > I used as_numer_denom earlier and now found fraction. > Is there any difference between them? > > -- > You received this message because you are subscribed to the Google Groups > "sympy" 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/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/64b73b09-213c-4735-a80b-f5a37a4c2766%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sympy" 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/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6JWdmqUSPh1g4Aqa6fUEQD4%3D8DSaDdYZT%3D3vENakCRZAQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
