Simulate N sources of waves and how they interfere with each other. This can be used to recreate the Double slit experiment, and does by default (the 2 sources are considered to be the 2 holes)
from waveinterference import waves_interferences,Source
source1 = Source((0,0.5),4)
source2 = Source((0,-0.5),4)
waves_interferences([source1,source2],precision=150)
source3 = Source((-2,-1),intensity=8)
w=waves_interferences([source1,source2,source3],precision=400,posy=(-10,10),posx=(-10,10))
- Implement double slit experiment
- Extend to n sources
- Add possibility of wave blocking object