Example #1
0
 def calc_data_detail(data_list):
     result_data = {}
     diff_10delta_x, aver_10delta_x = Method.successive_diff(
         data_list['exp_data'])
     delta_x = aver_10delta_x / 10
     b = abs(data_list['bL'] - data_list['bR'])
     b1 = abs(data_list['b1L'] - data_list['b1R'])
     a = sqrt(b * b1)
     S = abs(data_list['K'] - data_list['L2'])
     S1 = abs(data_list['K'] - data_list['L1'])
     D = S + S1
     result_lambda = a / D * delta_x * 100000
     error = abs(result_lambda -
                 data_list['lambda_0']) / data_list['lambda_0'] * 100
     result_data['diff_10delta_x'] = diff_10delta_x
     result_data['aver_10delta_x'] = aver_10delta_x
     result_data['delta_x'] = delta_x
     result_data['b'] = b
     result_data['b1'] = b1
     result_data['a'] = a
     result_data['S'] = S
     result_data['S1'] = S1
     result_data['D'] = D
     result_data['result_lambda'] = result_lambda
     result_data['error'] = error
     return result_data
 def calc_data(self):
     N = 100
     self.data['N'] = N
     # 逐差法计算100圈光程差d
     dif_d_arr, d = Method.successive_diff(self.data['d_arr'])
     self.data['dif_d_arr'] = dif_d_arr
     self.data['d'] = d
     # 按公式计算待测光的波长
     lbd = 2 * d / (len(dif_d_arr) * N)
     lbd = lbd * 1e6
     self.data['lbd'] = lbd
Example #3
0
 def calc_data(self):
     N = 100
     self.data['N'] = N
     # 逐差法计算100圈光程差d
     list_dif_d, d = Method.successive_diff(self.data['list_d'])
     self.data['list_dif_d'] = list_dif_d
     self.data['d'] = d
     # 按公式计算待测光的波长
     lbd = 2 * d / (len(list_dif_d) * N)
     lbd = lbd * 1e6
     self.data['lbd'] = lbd
Example #4
0
 def calc_data(self):
     list_dif_d, ave_d = Method.successive_diff(self.data['list_d'])
     self.data['list_dif_d'] = (1 / 3) * list_dif_d
     self.data['ave_d'] = (1 / 3) * ave_d