Given the transfer function $H(z) = \frac{1}{4}(1+z^{-1}+z^{-2}+z^{-3})$ and the input signal $x[n] = \cos(\frac{\pi}{50}n)+\cos(\frac{4\pi}{5}n)$, how can I find the output signal $y[n]$ in mathematica?
What I tried
H[z_] := 1/4 (1 + 1/z + 1/z^2 + 1/z^3)
x[n_] := Cos[π/50 n] + Cos[(4 π)/5 n]
zt = ZTransform[x[n], n, z, Assumptions -> {n ∈ Integers, n >= 0, z >= 0}];
InverseZTransform[Abs[zt * H[z]], z, n,
Assumptions -> {n ∈ Integers, n >= 0, z >= 0}]
However, I get a bunch of error messages from this.
Assumptions::mepreal : "In attempting to decide whether a solution <<...>. is real, $MaxExtraPrecision 50.` was encountered. The solution was assumed real. Increasing the value of $MaxExtraPrecision may help resolve the uncertainty.>>
I'm really not sure how to filter this signal in Mathematica.