Our wave equation is:
y(x, t) = A · e–d·x · sin(2π · f · t + (2π/λ) · x + φ)
A (Amplitude) determines the height of the wave.
d (Damping) shows how quickly the wave fades over distance.
f (Frequency) is how fast the wave oscillates.
λ (Wavelength) is the distance between two wave peaks.
φ (Phase) adjusts the starting point of the wave.
In simple terms, the equation multiplies the wave’s height by a decaying factor (e–d·x) and shapes it with a sine curve that moves over time. This precise formula lays the groundwork for your simulation.