Fixed bug in RectangularWaveguide.Z0
@@ -421,8 +421,8 @@ class RectangularWaveguide(Media):
The characteristic impedance
'''
omega = self.frequency.w
- impedance_dict = {'te': omega*self.mu/(-1*self.gamma),
- 'tm': -1*self.gamma/(omega*self.ep),\
+ impedance_dict = {'te': 1j*omega*self.mu/(self.gamma),
+ 'tm': 1j*self.gamma/(omega*self.ep),\
}
return impedance_dict[self.mode_type]
