Algebrite icon indicating copy to clipboard operation
Algebrite copied to clipboard

simplify (x^2-x*y)/(x*y-y^2)

Open pedritomelenas opened this issue 8 years ago • 2 comments

simplify((x^2-x*y)/(x*y-y^2)) outputs x (x - y) / (-y^2 + x y) while it should probably be x/y. However if we factor the numerator with factor((x^2-x*y)) we obtain x (x - y), which is fine.

What am I doing wrong?

Thank you, Pedro

pedritomelenas avatar Jan 25 '17 17:01 pedritomelenas

acknowledged.

...indeed doing simplify(factor(x^2-x*y)/factor(x*y-y^2)) works.

I'll see if I can add a simplification step for rational functions like those, where I do try the "factor" trick, I'll see if that causes other problems...

davidedc avatar Jan 25 '17 18:01 davidedc

Good! I will use this workaround. Thank you for your great work.

pedritomelenas avatar Jan 25 '17 18:01 pedritomelenas