Simulated optics experiment/Data analysis: Difference between revisions

Content added Content deleted
m (→‎Extra "credit": Typo fix)
(→‎{{header|Python}}: Comment out unused data.)
Line 320: Line 320:
# the orientation of the beam splitter is actually a rotated "X".
# the orientation of the beam splitter is actually a rotated "X".
assert (all(0 <= x and x < 90 for x in (angleL, angleR)))
assert (all(0 <= x and x < 90 for x in (angleL, angleR)))
perpendicularL = angleL - 90 # In Quadrant 4.
#perpendicularL = angleL - 90 # In Quadrant 4.
perpendicularR = angleR - 90 # In Quadrant 4.
#perpendicularR = angleR - 90 # In Quadrant 4.


# Note that the sine is non-negative in Quadrant 1, and the cosine
# Note that the sine is non-negative in Quadrant 1, and the cosine