Yes. This version is not for me. x in front of cosine shouldn't be replaced.
On Thursday, March 19, 2015 at 4:56:42 PM UTC+2, Mike Boyle wrote: > > It seems to me that the easy way to do this is to solve your replacement > for `x`: > > cos(4*x+6).subs(x, (u-3)/2) > > And if this is just a special case of a more general substitution, you can > of course do that solve step with sympy. > > I can't tell from your question, but this might not be exactly what you > wanted. For example, look at > > (x*cos(4*x+6)).subs(x, (u-3)/2) > > This will also replace the `x` out front. If you don't want that, you'd > need to do an even more complicated version of what Francesco suggests. > -- 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/ae55b419-7fc5-4302-9b28-4d4c983bacdb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
