From: Robert Dober Date: 2010-06-08T04:33:30+09:00 Subject: Re: Complex numbers contradiction? On Mon, Jun 7, 2010 at 9:01 PM, Andrew Duncan wrote: > This looks correct: >>> Complex(1,1)**-1 > => Complex(Rational(1, 2), Rational(-1, 2)) > > But this does not; should be same answer: >>> 1/Complex(1,1) > => Complex(0, -1) > Correct on my box ruby-1.9.1-p378 > 1/Complex(1,1) => 12-12i which version do you have? HTH R. -- The best way to predict the future is to invent it. -- Alan Kay