pub fn mul(self: Self, other: Self) Self
Returns the product of two complex numbers.
self: Self
other: Self
62 63 64 65 66 67
pub fn mul(self: Self, other: Self) Self { return Self{ .re = self.re * other.re - self.im * other.im, .im = self.im * other.re + self.re * other.im, }; }
Returns the product of two complex numbers.