Algebrite
Algebrite copied to clipboard
simplify (x^2-x*y)/(x*y-y^2)
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
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...
Good! I will use this workaround. Thank you for your great work.