View source: R/double_slit_functions.R
dsi | R Documentation |
This is a function to evaluate the double slit intensity function
dsi(theta, d.slit.sep, a.slit.width, lambda, Imax = 1)
theta |
direction angle between -pi/2 and pi/2 (-90 deg, 90deg) |
d.slit.sep |
slit separation |
a.slit.width |
slit width |
lambda |
wavelength |
I.max |
largest intensity to use |
This is a function to evaluate the double slit intensity function.
Double slit intensity.
library(che302r)
dsi(pi/2, 10, 0.1, 650)
#theta <- seq(from=-pi/2, to=pi/2, length.out=1000)
theta <- seq(from=-pi/4, to=pi/4, length.out=1000)
lam <- 650
d <- 6*lam
a <- 2*lam
I <- dsi(theta, d.slit.sep = d, a.slit.width = a, lambda = lam)
plot(theta*180/pi, I, typ="l", xlab="theta (deg)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.