Let's assume I have the following transfer function:
$$ H(z)=\frac{z-\left(\frac{1}{\sqrt{2}}+i \cdot \frac{1}{\sqrt{2}}\right)}{z} $$
It looks like a first order highpass-filter with a complex zero at $\frac{1}{\sqrt{2}} + i \cdot \frac{1}{\sqrt{2}}$.
If I do the inverse $z$-transform, I get the following difference equation:
$$ y(k)=x(k) - \frac{1}{\sqrt{2}} \cdot x(k-1) - i \cdot \frac{1}{\sqrt{2}} \cdot x(k-1) $$ with $k$ as time step variable. My input signal is real valued and my output should be real valued as well.
- How do I implement that filter e.g. in C?
- How do I deal with that complex numbers in that case?