I notice that the ztrans for F3, F4, and F5 all use the indeterminate form ztrans() instead of particular calculations. @Shahed might be asking about that part, perhaps.
Unclear to me how, or even if, ztrans is accounting for that assumption on n. That is, if n must be positive, then I don't know how the z-transform of f(n) = cos(a*n) is defined insofar as the z-transform sum starts at n = 0.
I would proceed with one of the following options. Maybe ztrans should do better for the latter two.
syms a n z
f(n) = cos(a*n);
ztrans(f(n))
ans =
sympref('default');
u(n) = heaviside(n) + kroneckerDelta(n)/2;
f(n) = cos(a*n)*u(n);
ztrans(f(n))
ans =
simplify(ans)
ans =
sympref('HeavisideAtOrigin',1);
f(n) = cos(a*n)*heaviside(n);
ztrans(f(n))
ans =
simplify(ans)
ans =
However, I don't understand this:
ztrans(f(n)) % (1)
ans =
As we saw above, that ans can be simplified. But it doesn't simplify after subtracting 1?