diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-04 00:22:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-04 00:22:13 +0000 |
commit | 3e063ca7ae85d97f24c6b2933d02f80daffd7e7b (patch) | |
tree | 5d9dd476070ea4fb1d30abe1df7783b6ecaf5a1f /bignum.c | |
parent | 7d9623eb242af760dc7b4f2bd93d46d3814dab36 (diff) |
complex.c: rb_dbl_complex_polar_pi
* complex.c (rb_dbl_complex_polar_pi): suffixed with _pi to
clarify that `ang` is not radian, but multiplied by PI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6211,7 +6211,7 @@ rb_big_pow(VALUE x, VALUE y) if (RB_FLOAT_TYPE_P(y)) { d = RFLOAT_VALUE(y); if ((BIGNUM_NEGATIVE_P(x) && !BIGZEROP(x))) { - return rb_dbl_complex_polar(pow(-rb_big2dbl(x), d), d); + return rb_dbl_complex_polar_pi(pow(-rb_big2dbl(x), d), d); } } else if (RB_BIGNUM_TYPE_P(y)) { |