Definition at line 27 of file abcd_optics.py. 00027 : 00028 if q is None: 00029 if r is Infinity: 00030 rinv=0 00031 else: 00032 rinv=1.0/r 00033 self.q=1.0/ complex(rinv , -lambda0 / (math.pi*w**2) ) 00034 self.w=w 00035 self.r=r 00036 else: 00037 self.q=q 00038 qi=1.0/q 00039 self.w=math.sqrt(-lambda0/qi.imag/math.pi) 00040 if abs(qi.real) < 1e-15: 00041 self.r=Infinity 00042 else: 00043 self.r=1.0/qi.real 00044 self.lambda0=lambda0 00045 def __str__(self):
|