WaveSimulation Demo

your browser does not suport HTML5 Canvas.

Function: z(x,y)=
Constants:
X min: = X max: =
Y min: = Y max: =
Z min: = Z max: =

This is a demonstration of WaveSimulation V.3 from the SciSimulation JavaScript library. You can download the latest release of SciSimulations or browse all releases.

Example Equations

When light passes through two narrow slits the waves propagate out of the slits as if they were point sources. the two waves then interact forming an interference pattern. This situation can be modeled as two point sources, were k is the wave number w is the angular frequency t is the time variable and d is the distance between the point sources.


z(x,y,t)=sin(k*sqrt((x+d/2)^2+y^2)+w*t)+sin(k*sqrt((x-d/2)^2+y^2)+w*t)



constants: k=2*pi,w=2*pi,d=2.5,t=0



range: x[-10,10],y[-10,10],z[-2,2]

         

The human eye cannot detect the amplitude of a light wave, what we actually see is the average over time of the amplitude squared. this equation can be calculated for a double slit experiment.

 2*π

0 
(sin(((x+d/2)2+y2)+t)+sin(((x-d/2)2+y2)+t))2/2*π dx = cos(((x+d/2)2+y2)-((x-d/2)2+y2))+1;

z(x,y,t)=cos(k*sqrt((x+d/2)^2+y^2)-k*sqrt((x-d/2)^2+y^2))+1



constants: k=2*pi,d=2.5



range: x[-10,10],y[-10,10],z[-2,2]