pub fn add(self: Self, other: Self) Self
Returns the sum of two complex numbers.
self: Self
other: Self
46 47 48 49 50 51
pub fn add(self: Self, other: Self) Self { return Self{ .re = self.re + other.re, .im = self.im + other.im, }; }
Returns the sum of two complex numbers.