diff options
| author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2013-05-01 15:40:05 +1000 |
|---|---|---|
| committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2013-05-01 15:40:05 +1000 |
| commit | ee26c7c433dbb8d41a2b65dbc89eb84acfc2d311 (patch) | |
| tree | 3695dcd0a6ef66dcca551d6bb87776694987ee73 /src/libstd/num/complex.rs | |
| parent | 7a857673ff76c966ceb061e3794b119e2e498c40 (diff) | |
| download | rust-ee26c7c433dbb8d41a2b65dbc89eb84acfc2d311.tar.gz rust-ee26c7c433dbb8d41a2b65dbc89eb84acfc2d311.zip | |
Revert rename of Div to Quot
Diffstat (limited to 'src/libstd/num/complex.rs')
| -rw-r--r-- | src/libstd/num/complex.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/num/complex.rs b/src/libstd/num/complex.rs index 02393b15cca..41d2b4a101c 100644 --- a/src/libstd/num/complex.rs +++ b/src/libstd/num/complex.rs @@ -102,9 +102,9 @@ impl<T: Copy + Num> Mul<Cmplx<T>, Cmplx<T>> for Cmplx<T> { // (a + i b) / (c + i d) == [(a + i b) * (c - i d)] / (c*c + d*d) // == [(a*c + b*d) / (c*c + d*d)] + i [(b*c - a*d) / (c*c + d*d)] -impl<T: Copy + Num> Quot<Cmplx<T>, Cmplx<T>> for Cmplx<T> { +impl<T: Copy + Num> Div<Cmplx<T>, Cmplx<T>> for Cmplx<T> { #[inline] - fn quot(&self, other: &Cmplx<T>) -> Cmplx<T> { + fn div(&self, other: &Cmplx<T>) -> Cmplx<T> { let norm_sqr = other.norm_sqr(); Cmplx::new((self.re*other.re + self.im*other.im) / norm_sqr, (self.im*other.re - self.re*other.im) / norm_sqr) @@ -275,7 +275,7 @@ mod test { } } #[test] - fn test_quot() { + fn test_div() { assert_eq!(_neg1_1i / _0_1i, _1_1i); for all_consts.each |&c| { if c != Zero::zero() { |
