Advertisement
Guest User

mma-interference

a guest
Oct 7th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Manipulate[With[{l = l2},
  2. p1 = Plot[Sin[4 x], {x, 0, l}];
  3. p2 = Plot[Sin[4 x], {x, l, 2 l}, PlotStyle -> Red];
  4. Graphics[{Black, Thick,
  5. Tooltip[Line[{{0, -1}, {0, 1}}], "Dielectric entrance"],
  6. Tooltip[Line[{{l, -1}, {l, 1}}], "Dielectric exit"],
  7. Tooltip[p1[[1]], "Transmitted wave"],
  8. Tooltip[GeometricTransformation[p2[[1]],
  9. ReflectionTransform[{1, 0}, {l, 0}]], "Reflected wave"]},
  10. PlotLabel -> "Interference Filter"]], {{l2, Pi/2,
  11. "Dielectric thickness"}, Pi/2, 2 Pi, Appearance -> "Labeled"}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement