Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

algebraic condition

Hi,

I have a very simple problem: I have a parameter a which is either 1 or -1. I have some very complicated expressions in which this parameter occurs raised to integer powers a^2, a^3, a^4 etc. I would like to implify those equations substituting the condition a^2=1, but with expr.subs a^3, a^4 etc are not replaced by a, 1, etc.

I would appreciate some help in this issue.