Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3833 by [email protected]: cancel anomoly
http://code.google.com/p/sympy/issues/detail?id=3833
cancel gives different results depending on the type of generator it is
working with:
w=x
eq=(w+1/w)/(w-1/w);cancel(eq)
(x**2 + 1)/(x**2 - 1)
that's nice and so is this
w=exp(I*x)
eq=(w+1/w)/(w-1/w);cancel(eq)
(exp(2*I*x) + 1)/(exp(2*I*x) - 1)
but if the power can be expanded (i.e. has an Add exponent) then
w=exp(1+I)
eq=(w+1/w)/(w-1/w)
cancel(eq)
(exp(-1)*exp(-I) + E*exp(I))/(-exp(-1)*exp(-I) + E*exp(I))
w=exp(x+I)
eq=(w+1/w)/(w-1/w);cancel(eq)
-(exp(I)*exp(x) + exp(-I)*exp(-x))/(-exp(I)*exp(x) + exp(-I)*exp(-x))
So maybe the issue is that it is working with an expanded expression and
then doesn't recognize that the two exp factors appear together.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.