[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68679] [Ruby trunk - Bug #10989] [Rejected] Complex Exponentiation

From: muraken@...
Date: 2015-03-30 04:07:56 UTC
List: ruby-core #68679
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/

In This Thread

Prev Next