Suppose we have a signal as x(t) = exp(i(omega*t + phi)), after a simple calculation as y(t) = 1/x(t). We can clearly see that there is a phase shift of Pi=180deg. However, using directly calculation as y(t) = 1/x(t) = exp(-i(omega*t + phi)), the phase shift shall be:
delta phi = angle(x(t)*conj(y(t))) = angle(exp(i(omega*t + phi)*exp(i(omega*t + phi)))) = 2*omega*t + 2*phi, which does not equal to Pi.
This problem occur for a general combination of calculations for a signal. Suppose the calculations can be treated as an operator upon the signal function as L(f). Then after these operation, what phase shift will we get?
phase shift = angle(x(t)*conj(y(t))) = angle(x(t)*conj(L(x(t)))) = ?
Where conj() means to get the conjugate of the a complex value.