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: [mg104514] Re: Problem Replacing part of NonCommutativeMultiply expresions
  • From: magma <maderri2 at gmail.com>
  • Date: Tue, 3 Nov 2009 02:51:17 -0500 (EST)
  • References: <hcl3s1$bvc$1@smc.vnet.net>

On Nov 1, 11:59 pm, Iv=E1n Lazaro <gamins... at gmail.com> 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.
>
> Do you have some idea?
>
> Thanks a lot!

Try this:

NonCommutativeMultiply // Unprotect
NonCommutativeMultiply[x___, 0, y___] := 0
g ** a ** p ** r ** e ** r ** e ** f ** h /. r ** e ** r ** e -> 0

et voila'...you get 0


  • Prev by Date: Re: Opportunities and Player Pro
  • Next by Date: Re: Fit function vs Hand Calculation
  • Previous by thread: Re: Problem Replacing part of NonCommutativeMultiply
  • Next by thread: Re: Re: Problem Replacing part of NonCommutativeMultiply