Is the imaginary number i, defined somewhere in Cadabra?
i
Cadabra
The version on github now has an ImaginaryI property which is handled automatically,
ImaginaryI
i::ImaginaryI; ex:= i i A;
reduces to -A immediately.
-A
There used to be an ImaginaryI property, but I seem to have forgotten to include it in 2.x; thanks for reminding me ;-) Until that's back, simply use
substitute(_, $I I -> -1$, repeat=True);
as a temporary workaround.
Thank you Kasper! And great job with cadabra2.