[ruby-cvs:70769] nobu:r63678 (trunk): refine Integer#** and Float#**

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Jun 17 11:37:32 JST 2018


nobu	2018-06-17 11:37:32 +0900 (Sun, 17 Jun 2018)

  New Revision: 63678

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63678

  Log:
    refine Integer#** and Float#**
    
    * complex.c (rb_dbl_complex_polar): utility function, which
      returns more precise value in right angle cases.
    
    * bignum.c (rb_big_pow): use rb_dbl_complex_polar().
    
    * numeric.c (rb_float_pow, fix_pow): create a Complex by polar
      form.

  Modified files:
    trunk/bignum.c
    trunk/complex.c
    trunk/internal.h
    trunk/numeric.c


More information about the ruby-cvs mailing list