diff --git a/j/rational.j b/j/rational.j index debb9cc1113ee..d0f247b4cd9f5 100644 --- a/j/rational.j +++ b/j/rational.j @@ -18,10 +18,10 @@ Rational(n::Int) = Rational(n, one(n)) //(n::Int, d::Int) = Rational(n,d) //(x::Rational, y::Int) = x.num // (x.den*y) //(x::Int, y::Rational) = (x*y.den) // y.num -//(x::ComplexPair, y::Real) = complex(real(x)//y, imag(x)//y) -//(x::Real, y::ComplexPair) = x*y'//real(y*y') +//(x::Complex, y::Real) = complex(real(x)//y, imag(x)//y) +//(x::Real, y::Complex) = x*y'//real(y*y') -function //(x::ComplexPair, y::ComplexPair) +function //(x::Complex, y::Complex) xy = x*y' yy = real(y*y') complex(real(xy)//yy, imag(xy)//yy)