From: Andrew Duncan Date: 2010-06-08T04:38:58+09:00 Subject: Re: Complex numbers contradiction? I have ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0] BTW, I hope that was 1/2 - 1/2i in your post... If this is a bug, it's pretty egregious. Robert Dober wrote: > 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. -- Posted via http://www.ruby-forum.com/.