Challenge - 5 Problems
Z-transform Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
â Predict Output
intermediateOutput of Z-transform for a unit step sequence
What is the Z-transform of the unit step sequence u[n] = 1 for n >= 0 and 0 otherwise?
Signal Processing
import sympy as sp z = sp.symbols('z') X = 1/(1 - 1/z) X_simplified = sp.simplify(X) print(X_simplified)
Attempts:
2 left
đĄ Hint
Recall the Z-transform formula for the unit step sequence is a geometric series sum.
â Incorrect
The Z-transform of u[n] is the sum from n=0 to infinity of z^(-n), which equals 1/(1 - z^(-1)) = z/(z-1).
â data_output
intermediateNumber of terms in Z-transform of finite sequence
Given the finite sequence x[n] = {1, 2, 3} for n=0,1,2 and zero elsewhere, how many non-zero terms does its Z-transform sum contain?
Signal Processing
x = [1, 2, 3] non_zero_terms = len([val for val in x if val != 0]) print(non_zero_terms)
Attempts:
2 left
đĄ Hint
Count the number of non-zero elements in the sequence.
â Incorrect
The sequence has three non-zero values at n=0,1,2, so the Z-transform sum has three terms.
đ§ Conceptual
advancedRegion of convergence for causal exponential sequence
For the causal sequence x[n] = a^n u[n], where |a| < 1, what is the region of convergence (ROC) of its Z-transform?
Attempts:
2 left
đĄ Hint
ROC depends on the convergence of the infinite sum for n >= 0.
â Incorrect
For the sum to converge, |z| must be greater than |a|, so ROC is |z| > |a|.
đ§ Debug
advancedIdentify error in Z-transform calculation code
What error does the following code produce when calculating the Z-transform of x[n] = 2^n u[n]?
import sympy as sp
z = sp.symbols('z')
X = sum(2**n * z**n for n in range(5))
print(X)
Signal Processing
import sympy as sp z = sp.symbols('z') X = sum(2**n * z**(-n) for n in range(5)) print(X)
Attempts:
2 left
đĄ Hint
Check if the code runs and what it outputs.
â Incorrect
The code sums finite terms and outputs a polynomial expression without error.
đ Application
expertZ-transform of a shifted sequence
Given the sequence x[n] = u[n-2], where u[n] is the unit step, what is the Z-transform X(z)?
Attempts:
2 left
đĄ Hint
Use the time-shifting property of the Z-transform.
â Incorrect
The Z-transform of u[n] is z/(z-1). Shifting by 2 delays multiplies by z^(-2). So X(z) = z^(-2) * z/(z-1) = z^(-2)/(1 - z^(-1)).
