* [ruby-core:68579] [Ruby trunk - Bug #10989] [Open] Complex Exponentiation
[not found] <redmine.issue-10989.20150320175426@ruby-lang.org>
@ 2015-03-20 17:54 ` yaha1928
2015-03-30 4:07 ` [ruby-core:68679] [Ruby trunk - Bug #10989] [Rejected] " muraken
1 sibling, 0 replies; 2+ messages in thread
From: yaha1928 @ 2015-03-20 17:54 UTC (permalink / raw
To: ruby-core
Issue #10989 has been reported by Keith ng.
----------------------------------------
Bug #10989: Complex Exponentiation
https://bugs.ruby-lang.org/issues/10989
* Author: Keith ng
* Status: Open
* 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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-core:68679] [Ruby trunk - Bug #10989] [Rejected] Complex Exponentiation
[not found] <redmine.issue-10989.20150320175426@ruby-lang.org>
2015-03-20 17:54 ` [ruby-core:68579] [Ruby trunk - Bug #10989] [Open] Complex Exponentiation yaha1928
@ 2015-03-30 4:07 ` muraken
1 sibling, 0 replies; 2+ messages in thread
From: muraken @ 2015-03-30 4:07 UTC (permalink / raw
To: ruby-core
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-30 3:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <redmine.issue-10989.20150320175426@ruby-lang.org>
2015-03-20 17:54 ` [ruby-core:68579] [Ruby trunk - Bug #10989] [Open] Complex Exponentiation yaha1928
2015-03-30 4:07 ` [ruby-core:68679] [Ruby trunk - Bug #10989] [Rejected] " muraken
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).