std › math › Complex › addaddReturns the sum of two complex numbers. Function parametersParameters#self:Selfother:SelfFunctions in this namespaceFunctions#absacoshacosargasinhasinatanhatanconjcoshcosexplogpowprojsinhsinsqrttanhtanComplex A complex number consisting of a real an imaginary part.SourceImplementation#pub fn add(self: Self, other: Self) Self { return Self{ .re = self.re + other.re, .im = self.im + other.im, }; }
pub fn add(self: Self, other: Self) Self { return Self{ .re = self.re + other.re, .im = self.im + other.im, }; }