MathGroup Archive 2009

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

Search the Archive

Re: Problem Replacing part of NonCommutativeMultiply expresions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104517] Re: Problem Replacing part of NonCommutativeMultiply expresions
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Tue, 3 Nov 2009 02:51:51 -0500 (EST)
  • References: <hcl3s1$bvc$1@smc.vnet.net>

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[1]:= g ** a ** p ** r ** e ** r ** e /. r ** e ** r ** e -> 0

Out[1]= g ** a ** p ** 0

It would not work if NonCommutativeMultiply didn't have the Flat
attribute.  Did you remove this attribute?


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