Skip to main content

10.7b Wavelet code labs

Source: Lab ideas from Computational Physics (Landau, Páez, Bordeianu), §10.7 listings. Original drills on CWT / Daub4 sketch kernels — not a paste of CWT.py / DWT.py. Continues 10.7.

Explorer​

Pure Python. No NumPy / VPython.

Formula refresh​

Warm up: pick the matching equation among lookalikes (same walk as the theory lesson).

Labs​

Activity: Ψ(T)=sin⁡(8T) e−T2/2\Psi(T)=\sin(8T)\,e^{-T^2/2}

For t=0.5t=0.5, s=1s=1, τ=0\tau=0, print Ψ((t−τ)/s)\Psi((t-\tau)/s) with 10 decimals.

No input.

Write-ups​

0/3 solved
10.7b.W1

Using “morlet”, “scale”, “tau”, and “cwt”, explain:

In a Morlet CWT sketch, what do the outer s-loop and inner τ-loop each control?

Minimum 3 words. Your answer must include: “morlet”, “scale”, “tau”, “cwt”.

0 words/ 3 min

Meet the writing requirements, then you can open the model answer.

Next: 11.1 Neural networks intro.