diff options
Diffstat (limited to 'src/libnum/complex.rs')
| -rw-r--r-- | src/libnum/complex.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnum/complex.rs b/src/libnum/complex.rs index 069dd2164f5..e0fdc8a363d 100644 --- a/src/libnum/complex.rs +++ b/src/libnum/complex.rs @@ -82,7 +82,7 @@ impl<T: Clone + Float> Cmplx<T> { /// Calculate |self| #[inline] pub fn norm(&self) -> T { - self.re.hypot(&self.im) + self.re.hypot(self.im) } } @@ -90,7 +90,7 @@ impl<T: Clone + Float> Cmplx<T> { /// Calculate the principal Arg of self. #[inline] pub fn arg(&self) -> T { - self.im.atan2(&self.re) + self.im.atan2(self.re) } /// Convert to polar form (r, theta), such that `self = r * exp(i /// * theta)` |
