diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-17 02:37:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-17 02:37:32 +0000 |
commit | 4fedad85efa84f25cad199eb325d3a300778a046 (patch) | |
tree | 98e8c59f05a3a61e4e271d2e1ab100494a59b954 /internal.h | |
parent | 90d065530784a110681ccef1326d63eac9cdc469 (diff) |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 7944f87043..c486a46d99 100644 --- a/internal.h +++ b/internal.h @@ -1171,6 +1171,7 @@ VALUE rb_complex_plus(VALUE, VALUE); VALUE rb_complex_mul(VALUE, VALUE); VALUE rb_complex_abs(VALUE x); VALUE rb_complex_sqrt(VALUE x); +VALUE rb_dbl_complex_polar(double abs, double ang); /* cont.c */ VALUE rb_obj_is_fiber(VALUE); |