pub fn neg(self: Self) Self
Returns the negation of a complex number.
self: Self
90 91 92 93 94 95
pub fn neg(self: Self) Self { return Self{ .re = -self.re, .im = -self.im, }; }
Returns the negation of a complex number.