std › math › Complex › reciprocalreciprocalReturns the reciprocal of a complex number. Function parametersParameters#self:SelfFunctions in this namespaceFunctions#absacoshacosargasinhasinatanhatanconjcoshcosexplogpowprojsinhsinsqrttanhtanComplex A complex number consisting of a real an imaginary part.SourceImplementation#pub fn reciprocal(self: Self) Self { const m = self.re * self.re + self.im * self.im; return Self{ .re = self.re / m, .im = -self.im / m, }; }
pub fn reciprocal(self: Self) Self { const m = self.re * self.re + self.im * self.im; return Self{ .re = self.re / m, .im = -self.im / m, }; }