Tag Info

Hot answers tagged


You have found the snags and you're right -- it's a simple matter. You just need the right rules. For a pure symbolic expression you can use Kuba's suggestion. a^2 - b + c*d /. -1 -> 1 a^2 + b + c d For dealing with complex numbers you can use (1 - b I) a /. x_Complex /; Im[x] < 0 -> Conjugate[x] (1 + b I) a If your expressions are ...


The simple rule I to -I is not guaranteed to work, e.g. Exp[3 I] /. I -> -I and ComplexConjugate might be too slow (for lengthy expressions). Therefore, I rather define an alternative function to conjugate ClearAll[AltConjugate] AltConjugate[x_] := ReplaceAll[FullSimplify[x], Complex[a_, b_] -> Complex[a, -b]]; This functions looks for the ...

Only top voted, non community-wiki answers of a minimum length are eligible