Challenge - 5 Problems
Z-transform Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
Output 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
intermediate1:30remaining
Number 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
advanced2:00remaining
Region 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
advanced1:30remaining
Identify 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
expert2:30remaining
Z-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)).