Project

General

Profile

Bug #10487 ยป adjust_test_complex.rb.patch

gogotanaka (Kazuki Tanaka), 11/08/2014 07:50 PM

View differences:

test/ruby/test_complex.rb
943 943
      assert_in_delta(0.804, c.real, 0.001)
944 944
      assert_in_delta(1.107, c.imag, 0.001)
945
      c = CMath.log(Complex(1, 2), Math::E)
946
      assert_in_delta(0.804, c.real, 0.001)
947
      assert_in_delta(1.107, c.imag, 0.001)
945
      c = CMath.log(Complex(1, 2), Math::E**2)
946
      assert_in_delta(0.402, c.real, 0.001)
947
      assert_in_delta(0.5535, c.imag, 0.001)
948 948
      c = CMath.log(-1)
949 949
      assert_in_delta(0.0, c.real, 0.001)
950
-