[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-core
Subject:    [ruby-core:68679] [Ruby trunk - Bug #10989] [Rejected] Complex Exponentiation
From:       muraken () gmail ! com
Date:       2015-03-30 4:07:56
Message-ID: redmine.journal-51967.20150330040755.d963bff62dbcc13b () ruby-lang ! org
[Download RAW message or body]

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/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic