View source: R/double_slit_functions.R
ssi | R Documentation |
This is a function to evaluate the single slit intensity function
ssi(theta, a.slit.width, lambda, Imax = 1)
theta |
direction angle between -pi/2 and pi/2 (-90 deg, 90deg) |
a.slit.width |
slit width |
lambda |
wavelength |
I.max |
largest intensity to use |
This is a function to evaluate the single slit intensity function. It isn't really necessary because we can just make the slit separation (d.slit.sep) 0 in dsi() to get ssi(). It's here for convenience.
Single slit intensity.
library(che302r)
ssi(pi/2, 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
a <- 3*lam
I <- ssi(theta, 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.