Thanks.

On Thursday, March 19, 2015 at 4:27:42 PM UTC+2, Francesco Bonazzi wrote:
>
> Try this one:
>
> cos(4*x+6).replace(
>     lambda expr: expr.is_Add,
>     lambda expr: ((expr/(2*x+3)).simplify()*u)
> )
>
>
>
> On Thursday, March 19, 2015 at 12:45:35 PM UTC+1, Paul Royik wrote:
>>
>> What is the best way to replace cos(4x+6) with cos(2u) if u=2x+3?
>>
>> cos(4x+6).subs(2x+3, u) doesn't work and I don't know how to write it 
>> using replace.
>>
>> I can' t do factor, since expression can be very big and factoring is not 
>> desirable.
>> Is it possible to do it without factoring in clean way?
>>
>>
>> Thank you.
>>
>

-- 
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/0f993b6a-67e0-48d2-8351-b3278c9cf942%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to