[Date Index] [Thread Index] [Author Index]
Re: Problem Replacing part of NonCommutativeMultiply expresions
On 2009.11.01. 23:59, Iv=E1n Lazaro wrote: > Dear all, > > I'm working with a huge amount (2000) of terms of this tipe: > g**a**p**r**e**r**e > > But a lot of them are cero. The problem is that i'm not able to set > r**e**r**e->0 in such expresions. If I do g**a**p**r**e**r**e/.r**e**r**e->0 > nothing happens. > This works for me: In:= g ** a ** p ** r ** e ** r ** e /. r ** e ** r ** e -> 0 Out= g ** a ** p ** 0 It would not work if NonCommutativeMultiply didn't have the Flat attribute. Did you remove this attribute?