When I type in an expression (x is a symbol):

>>> (x**2-1)/(x-1)
(x**2 - 1)/(x - 1)

One presumes this does not do any automatic cancellation because we don't 
want to lose undefined behavior at x = 1.

Then,

>>> (x+1)*(x-1)/(x-1)
x + 1

or 

>>> (x-1)/(x-1)
1

This oversimplifies the expression and loses the undefined behavior at x = 
1.

Is it possible to create an expression like the latter that does not get 
oversimplified?

-- 
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/0b461aec-c962-407a-b886-48d7d464f4f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to