I tried to fix this issue in this PR 
: https://github.com/sympy/sympy/pull/11804

--
Shekhar

On Tuesday, 1 November 2016 23:37:34 UTC+5:30, Nathan Thern wrote:
>
> I'm new to sympy and pouring through the documentation. I don't understand 
> the "pattern" part of the argument to rewrite. The following portion of 
> a session illustrates my question:
>
> >>> f=sin(x)+cos(y)/gamma(z)
> >>> f.rewrite(exp)
> -I*(exp(I*x) - exp(-I*x))/2 + (exp(I*y)/2 + exp(-I*y)/2)/gamma(z)
> >>> f.rewrite(sin,exp)
> -I*(exp(I*x) - exp(-I*x))/2 + (exp(I*y)/2 + exp(-I*y)/2)/gamma(z)
>
> Why does rewrite(sin,exp) also rewrite the cos(...) part of the expression 
> when it has been explicitly given "sin" as the pattern to rewrite?
>
> NT
>
>
>

-- 
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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/9f7323f0-82be-4cc6-a863-39113a8defe5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to