File:Two sources interference.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Two_sources_interference.gif (200 × 200 pixels, file size: 162 KB, MIME type: image/gif, looped, 9 frames, 0.9 s)
File information
Structured data
Captions
DescriptionTwo sources interference.gif | Illustration of interference of light coming from two in-phase point sources. |
Date | (UTC) |
Source | self-made with MATLAB |
Author | Oleg Alexandrov |
Public domainPublic domainfalsefalse |
I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
This diagram was created with MATLAB.
Source code (MATLAB)[edit]
% illustration of interference of two point sources
L=10;
sep = 6;
N=800;
k= 10;
V=linspace(-L, L, N);
[X, Y] = meshgrid(V, V);
I=sqrt(-1);
R1= sqrt( (X-sep).^8 + Y.^8 );
R2= sqrt( (X+sep).^8 + Y.^8 );
% Sum of Green's functions for two point sources
Z = exp(I*k*R1)./R1 + exp(I*k*R2)./R2;
M=10;
T=linspace(0.0, 2*pi, M); T=T(1:(M-1));
cut = 0.8;
scale = 55/(2*cut);
for p=1:1
for iter=1:length(T)
figure(1); clf; hold on;
W = real(Z*exp(-I*T(iter)));
W = max(W, -cut);
W = min(W, cut);
image(scale*(W+cut));
axis equal; axis off;
file=sprintf('Frame%d.png', 1000+iter);
disp(sprintf('Saving to %s', file));
print('-dpng', '-zbuffer', '-r100', file);
pause(0.1);
end
end
% saved to gif with the command
% convert -density 100 -loop 1000 -delay 10 Frame100* Two_sources_interference.gif
% then cropped and scaled in Gimp
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 03:11, 13 January 2008 | 200 × 200 (162 KB) | Oleg Alexandrov (talk | contribs) | {{Information |Description=Illustration of interference of light coming from two in-phase point sources. |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission= |other_ve |
You cannot overwrite this file.
File usage on Commons
The following 2 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ar.wikipedia.org
- Usage on ast.wikipedia.org
- Usage on az.wikipedia.org
- Usage on beta.wikiversity.org
- Usage on be.wikipedia.org
- Usage on bg.wikipedia.org
- Usage on ca.wikipedia.org
- Usage on cv.wikipedia.org
- Usage on en.wikipedia.org
- Usage on en.wikiversity.org
- Usage on es.wikipedia.org
- Usage on eu.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on fr.wikibooks.org
- Usage on fr.wikiversity.org
- Usage on he.wikipedia.org
- Usage on he.wiktionary.org
- Usage on hr.wikiquote.org
- Usage on hy.wikipedia.org
- Usage on hyw.wikipedia.org
- Usage on mk.wikipedia.org
- Usage on ml.wikipedia.org
- Usage on nl.wikipedia.org
- Usage on pl.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on ru.wikipedia.org
- Usage on sh.wikipedia.org
- Usage on sl.wikipedia.org
View more global usage of this file.