Engineering Lab

UCT EEE2047S / 2021

A signal, harmonic by harmonic

Completed symbolic/numerical Fourier tasks, with a new interactive reconstruction derived from the submitted period-eight pulse.

PythonSymPyNumPyFourier series

UCT / COURSE CONTEXT / 2021

EEE2047S · Signals and Systems I

Linear systems, convolution, Fourier analysis and sampling in time and frequency domains.

Engineering & the Built Environment handbook · 2021

EEE2047S / FOURIER RECONSTRUCTION

−8 s08 s
Reduced motion · transitions off

Odd harmonics through N = 1

x_N(t) = 1/2 + Σ [2/(kπ)] sin(kπt/4), k odd

New browser visualisation of the period 8, 0≤t<4 pulse in completed Lab 2 Question 2. Dashed: ideal pulse; faint: individual harmonics with DC; solid: finite sum. Not a hardware measurement. Ringing near discontinuities remains.

ENGINEERING PERSPECTIVE

Inside the work

Show how a periodic signal can be represented by harmonics. The pulse makes finite approximation, edge sharpness and ringing visible as the number of terms changes.

SymPy
Symbolic integration of complex Fourier coefficients in the submitted tasks.
NumPy / Python
Evaluate finite sums and generate spectral/reconstruction plots.
STEP 1 / 3

Define the period

Use the submitted pulse: one over the first half of an eight-unit period, zero over the second.

Source-derived walkthrough

How it works

Integrate the period-eight pulse x(t) = 1 for 0 ≤ t < 4 to obtain complex Fourier coefficients. The real reconstruction has a DC term of 1/2 and odd sine terms 2/(kπ) sin(kπt/4). The submitted tasks also analyse triangular and ramp-like signals.

Results & recovery

  • Named submission retains actual spectral plots and completed SymPy integration.
  • The new finite-sum visual shows how harmonic count changes edge sharpness and ringing. It is a mathematical explanation, not an original lab screenshot.

Technical limitations

No new physical signal measurement. The finite sum does not remove discontinuity ringing; worksheet and personally completed task outputs must not be conflated.

What I would improve now

Add numerical coefficient checks, convergence/error plots away from discontinuities and explicit phase-convention tests.

NEXT IN THE ARCHIVEWhen three records agree