Lesson 12 of 15
Wave Superposition
Superposition of Two Waves
When two waves of equal frequency but different phases and amplitudes meet, their amplitudes add vectorially. The resultant amplitude is:
- — individual amplitudes
- — phase difference (radians)
- A — resultant amplitude
Two Extremes
| Result | Name | |
|---|---|---|
| 0 | Constructive interference | |
| $ | A_1 - A_2 | |
| Quadrature |
Examples
| A | |||
|---|---|---|---|
| 1 | 1 | 0 | 2.0000 (double) |
| 1 | 1 | 0.0000 (cancel) | |
| 1 | 1 | 1.4142 () | |
| 3 | 4 | 0 | 7.0000 |
Your Task
Implement superpose(A1, A2, phi) returning the resultant amplitude.
Run the code to hear constructive then destructive interference.
Web Audio API loading...
Loading...
Click "Run" to execute your code.