Rowan-Classes/8th-Semester-Spring-2025/clinic-consultant/labs/lab-1/lab1q5.py

20 lines
419 B
Python

"""
ECE 09351 - Digital Signal Processing
Lab 1 Question 5
Translated from MATLAB by Aidan Sharpe
Last Modified: January 18, 2025
"""
from sympy import fourier_transform, exp, Q
from sympy.abc import t, f
def main():
x = exp(-4*t)*Heaviside(t) # Define x(t) = e^(-4t)*u(t)
X = fourier_transform(x, t, f) # Take the Fourier transform of x(t)
print(x)
if __name__ == "__main__":
main()