I'm looking to define a variable or function (let's call it I'
), similar to I
, such that I'^n
takes on user-defined values.
For conventional I
:
Table[I^n, {n, 10}]
{I, -1, -I, 1, I, -1, -I, 1, I, -1}
But I would like to define an I'
such that
Table[I'^n, {n, 10}]
yields {-1, -I, 1, I, -1, -I, 1, I, -1,-I}
("phase-shifted I
") or perhaps {-1, -1, I, I, -1, -1, I, I, -1,-1}
, or {-1,-2,I,2I,1,2,-I,-2I,-1,-2}
, or any arbitrary list.
So whenever I'^n
appears in a polynomial, each instance of I'^n
is interpreted as the corresponding user-defined value.
Any ideas? Thanks in advance.