MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Problem Replacing part of NonCommutativeMultiply


This replaces r**e**r**e with 0:

In[5]:= g ** a ** p ** r ** e ** r ** e /. (pre___) ** r ** e ** r ** e **
(post___) :>
  pre ** 0 ** post
Out[5]= g ** a ** p ** 0


Adriano Pascoletti

2009/11/1 Iv=E1n Lazaro <gaminster at gmail.com>

> 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.
>
> Do you have some idea?
>
> Thanks a lot!
>
>
>


  • Prev by Date: Re: Problem Replacing part of NonCommutativeMultiply expresions
  • Next by Date: Re: graphic
  • Previous by thread: Re: Problem Replacing part of NonCommutativeMultiply
  • Next by thread: Re: Problem Replacing part of NonCommutativeMultiply expresions