From: muraken@... Date: 2015-03-30T04:07:56+00:00 Subject: [ruby-core:68679] [Ruby trunk - Bug #10989] [Rejected] Complex Exponentiation Issue #10989 has been updated by Kenta Murata. Status changed from Open to Rejected It's not a bug but just a floating point arithmetic error. ~~~ $ ruby -e 'p 1i ** 2' (-1+0i) ~~~ ---------------------------------------- Bug #10989: Complex Exponentiation https://bugs.ruby-lang.org/issues/10989#change-51967 * Author: Keith ng * Status: Rejected * Priority: Normal * Assignee: * ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- Hello, it looks a sort of bug to me, doesn't it? ``` ruby -e 'p (1i) ** (2.0)' (-1.0+1.2246467991473532e-16i) ``` -- https://bugs.ruby-lang.org/