From: a2him2no4rst@... Date: 2019-01-04T21:06:50+00:00 Subject: [ruby-core:90892] [Ruby trunk Bug#15505] Complex#/ canonicalize rationals only when divisor is Complex Issue #15505 has been updated by msnm (Masahiro Nomoto). Subject changed from Ck to Complex#/ canonicalize rationals only when divisor is Complex ruby -v set to 2.6.0 In Ruby 2.6.0, Complex simplify division result when divisor is Complex, but does not when divisor is another class. This behavior seems to be less consistent. https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/64610 ~~~ ruby p RUBY_VERSION #=> "2.6.0" p Complex(4, 6) / Complex(2) #=> (2+3i) p Complex(4, 6) / Integer(2) #=> ((2/1)+(3/1)*i) ~~~ ---------------------------------------- Bug #15505: Complex#/ canonicalize rationals only when divisor is Complex https://bugs.ruby-lang.org/issues/15505#change-76079 * Author: msnm (Masahiro Nomoto) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.6.0 * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/ Unsubscribe: