Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Problem Replacing part of NonCommutativeMultiply

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104542] Re: [mg104506] Problem Replacing part of NonCommutativeMultiply
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 3 Nov 2009 02:56:39 -0500 (EST)
  • Reply-to: hanlonr at cox.net

sub1 = NonCommutativeMultiply[
    ___ , r, e, r, e, ___] -> 0;

sub2 = ___ ** r ** e ** r ** e ** ___ -> 0;

g ** a ** p ** r ** e ** r ** e /. sub1

0

g ** a ** p ** r ** e ** r ** e /. sub2

0

r ** e ** r ** e /. sub1

0

r ** e ** r ** e /. sub2

0

g ** a ** p ** r ** e ** r ** e ** h /. sub1

0

g ** a ** p ** r ** e ** r ** e ** h /. sub2

0


Bob Hanlon

---- "Iv=C3=A1n Lazaro" <gaminster 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!




  • Prev by Date: Precise control of horizontal ticks with BarChart?
  • Next by Date: Re: How do I get Mathematica to Simplify this to 1?
  • Previous by thread: Re: Re: Precise control of horizontal ticks with BarChart?
  • Next by thread: Cholesky Decomposition