|
[Date Index]
[Thread Index]
[Author Index]
UpValues and exponents
- To: mathgroup at smc.vnet.net
- Subject: [mg76707] UpValues and exponents
- From: sidious.lord at gmail.com
- Date: Sat, 26 May 2007 04:29:46 -0400 (EDT)
Hello,
I have three functions, aa, bb, and ab and I want to be able to
combine
together aa and bb as follows: aa[x, y] bb[y, z] -> ab[x, z]. I use
the
following definition to do it
aa /: aa[u__, v_] bb[v_, z__] := ab[u, v, z];
and in general it works well. However, when the functions aa and/or
bb
have exponents it doesn't work anymore.
Anybody has any ideas about how to generalise the definition to make
it work?
PS: I'm using Mathematica v4.1
Prev by Date:
Re: Function as an argument
Next by Date:
Re: Function as an argument
Previous by thread:
Re: Re: Mathematica V6. ComplexMap
Next by thread:
ideas needed!
|