I want, for example, for Mathematica to generate 7 + 5f if I write the expression (2+f) (3+f). I always want f^2 to be computed as 1 (or any other value I assign to it) but for f to be a special undefined symbol. If I define f^2:=1 I get a Tag Power is protected error message.
I am a Mathematica newbie, self taught, so please try to answer this in as elementary fashion as possible.
For the record, I am trying to define Clifford algebra operations in n-dimensional space-time and being able to make an assignment like this would tremendously simplify the task.
f /: f^2 = 1
but that won't recognizef^4 == 1
since 4 ≠ 2... - kennytm