blob: 996b88c6a666fa4948d660ca5a618bbd171ff210 (
plain)
1
2
3
4
5
6
7
8
9
|
clc;
clear;
lambda_ave=5893*10^-10 //mean wavelength in m
X2_minus_X1=0.2945*10^-3 //displacement of mirror in m
//calculation
lambda1_minus_lambda2=lambda_ave^2/(2*X2_minus_X1)
mprintf("The difference in wavelengths is = %1.3e m",lambda1_minus_lambda2)
//The answer varies due to round off error.
|