On Aug 21, 1:34 am, Julien Rioux <[email protected]> wrote:
> I appreciate your work very much.
>
> Now I get
>
> In [32]: fraction(x/y)
> Out[32]:
> x
> ─
> y
>
> While I expected (x, y), commutative symbols or not.
>
> Not sure if this is the proper way of separating numerator and
> denominator, but I have used this successfully before. Now the
> behavior as changed.
>
> Thanks,
> Julien

Sorry, I inadvertently sent the branch with all of my changes in it.
So while your testing this you are going to get some other behaviors
that are not in master. I'm working on a pure NC-related commit. In
the meantime if you just reverse numer_denom and fraction it will be
close to what you expect (though your results won't be as naive as the
original fraction):

>>> from sympy import *
>>> var('x y')
(x, y)
>>> fraction, numer_denom = numer_denom, fraction
>>> fraction(x/y)
(x, y)
>>> numer_denom(x/y)
x/y
>>> fraction(1/x+1/y)  # was previously (1/x + 1/y, 1)
(x + y, x*y)

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en.

Reply via email to