Waves¶
CalcpadCE treats classical wave interference and diffraction as plain superposition problems: each emitter contributes a sinusoidal field, and the worksheet sums them on a 2D grid via $Map, with the result shown as a heat-map straight inside the page.
Two complementary viewpoints recur throughout the category — a general view that maps the full \(\Psi(x,\, y)\) field over the whole region, and a screen view that collapses the same physics onto an intensity profile \(I(x)\) along a distant detector. The water-wave examples introduce the simplest two-source case and add an animated variant where time is swept frame-by-frame; the single-slit diffraction sheets approximate the slit by 7 line sources; and the multi-slit interference sheets scale the same formulation to 2, 4 and 6 coherent emitters.
Wavelength, slit spacing and observation distance are exposed at the top of every sheet, so each worksheet doubles as a sandbox for fringe-spacing and angular-resolution studies.
Waves 2D on Water Interference 🎬¶
Time-swept animation of two circular surface waves with different amplitudes and frequencies, summed on a 2D grid via $Map and rendered as a sequence of CSS-toggled SVG frames.
'Assoc. prof. Tadeusz Szumiata, PhD, Radom University, Poland
'Interferencja fal na wodzie
#rad
λ = 0.8m
k = (2*π)/λ
r(x; y) = sqrt(x^2 + y^2)
a = 1.6m
v = 2m/s
T = λ/v','f = 1/T|Hz
ω = (2*π)/T','ω_1 = ω','ω_2 = 0.5*ω
Ψ_0 = 0.1*m','Ψ_01 = Ψ_0','Ψ_02 = 1.5*Ψ_0
Δt = 0*T/4
Ψ_2D_1(x; y; t) = Ψ_01*sin(k*r(x - a/2; y) - ω_1*t)
Ψ_2D_2(x; y; t) = Ψ_02*sin(k*r(x + a/2; y) - ω_2*(t + Δt))
Ψ_2D(x; y; t) = Ψ_2D_1(x; y; t) + Ψ_2D_2(x; y; t)
'<!--'PlotHeight = 300','PlotWidth = 300','PlotSVG = 1','PlotPalette = 6','n = 10'-->
#val
'Animation - slowed down by 'kT = 3' times
'<style>[id^="fr-"]{display:none;}</style>
#for i = 1 : n
'<div id="fr-'i'">
$Map{Ψ_2D(x; y; 2*i/n*T) @ x = -2m : 2m & y = -2m : 2m}
'</div>
#loop
'<script>var i='n';var fr=$("#fr-"+i);setInterval(function(){fr.hide();if(++i>'n')i=1;fr=$("#fr-"+i);fr.show();}, '1000*kT*T/n');</script>
Assoc. prof. Tadeusz Szumiata, PhD, Radom University, Poland
Interferencja fal na wodzie
λ = 0.8 m
k = 2 · πλ = 2 · 3.140.8 m = 7.85 m-1
r ( x; y )  =   √ x2 + y2
a = 1.6 m
v = 2 ms
T = λv = 0.8 m2 m ∕ s = 0.4 s , f = 1T = 10.4 s = 2.5 Hz
ω = 2 · πT = 2 · 3.140.4 s = 15.71 s-1 , ω1 = ω = 15.71 s-1 , ω2 = 0.5 · ω = 0.5 · 15.71 s-1 = 7.85 s-1
Ψ0 = 0.1 m , Ψ01 = Ψ0 = 0.1 m , Ψ02 = 1.5 · Ψ0 = 1.5 · 0.1 m = 0.15 m
Δt = 0 · T4 = 0 · 0.4 s4 = 0 s
Ψ2D_1 ( x; y; t )  = Ψ01 · sin(k · r (x − a2; y) − ω1 · t)
Ψ2D_2 ( x; y; t )  = Ψ02 · sin(k · r (x + a2; y) − ω2 ·  ( t + Δt ) )
Ψ2D ( x; y; t )  = Ψ2D_1  ( x; y; t )  + Ψ2D_2  ( x; y; t ) 
Animation - slowed down by 3 timesWaves 2D on Water Interference¶
Static snapshot of two coherent point sources on a water surface: the field \(\Psi(x,\, y)\) is plotted as a heat-map showing the canonical hyperbolic interference fringes.
'Assoc. prof. Tadeusz Szumiata, PhD, Radom University, Poland
'Interferencja fal na wodzie
#rad
λ = 0.2m
k = (2*π)/λ
r(x; y) = sqrt(x^2 + y^2)
a = 0.6m
v = 1m/s
T = λ/v
f = 1/T|Hz
ω = (2*π)/T
Ψ_0 = 0.5*m
t = 0.0s
Δt = 0*T/4
Ψ_2D_1(x; y; t) = Ψ_0*sin(k*r(x - a/2; y) - ω*t)
Ψ_2D_2(x; y; t) = Ψ_0*sin(k*r(x + a/2; y) - ω*(t + Δt))
Ψ_2D(x; y; t) = Ψ_2D_1(x; y; t) + Ψ_2D_2(x; y; t)
PlotHeight = 400','PlotWidth = 400
$Map{Ψ_2D(x; y; t) @ x = -1m : 1m & y = -1m : 1m}
$Map{Ψ_2D(x; y; t)^2 @ x = -1m : 1m & y = -1m : 1m}
$Map{abs(Ψ_2D(x; y; t)) @ x = -1m : 1m & y = -1m : 1m}
Assoc. prof. Tadeusz Szumiata, PhD, Radom University, Poland
Interferencja fal na wodzie
λ = 0.2 m
k = 2 · πλ = 2 · 3.140.2 m = 31.42 m-1
r ( x; y )  =   √ x2 + y2
a = 0.6 m
v = 1 ms
T = λv = 0.2 m1 m ∕ s = 0.2 s
f = 1T = 10.2 s = 5 Hz
ω = 2 · πT = 2 · 3.140.2 s = 31.42 s-1
Ψ0 = 0.5 m
t = 0 s
Δt = 0 · T4 = 0 · 0.2 s4 = 0 s
Ψ2D_1 ( x; y; t )  = Ψ0 · sin(k · r (x − a2; y) − ω · t)
Ψ2D_2 ( x; y; t )  = Ψ0 · sin(k · r (x + a2; y) − ω ·  ( t + Δt ) )
Ψ2D ( x; y; t )  = Ψ2D_1  ( x; y; t )  + Ψ2D_2  ( x; y; t ) 
PlotHeight = 400 , PlotWidth = 400