diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-12 14:13:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-12 14:13:46 +0000 |
commit | 6967900fd910a767bbe7804ec4f21b027cedd735 (patch) | |
tree | 30b7be7a49a2c78b48488a0ceb58fd1530000ce5 /internal.h | |
parent | a395aca709c9a9ffa73b7f69071a540672005973 (diff) | |
download | ruby-6967900fd910a767bbe7804ec4f21b027cedd735.tar.gz |
math.c: Complex sqrt
* math.c (rb_math_sqrt): [EXPERIMENTAL] move Complex sqrt support
from mathn.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal.h b/internal.h index 1a75532e79..b47430cd7d 100644 --- a/internal.h +++ b/internal.h @@ -903,6 +903,8 @@ VALUE rb_insns_name_array(void); /* complex.c */ VALUE rb_complex_plus(VALUE, VALUE); VALUE rb_complex_mul(VALUE, VALUE); +VALUE rb_complex_abs(VALUE x); +VALUE rb_complex_sqrt(VALUE x); /* cont.c */ VALUE rb_obj_is_fiber(VALUE); @@ -1083,9 +1085,7 @@ VALUE rb_math_hypot(VALUE, VALUE); VALUE rb_math_log(int argc, const VALUE *argv); VALUE rb_math_sin(VALUE); VALUE rb_math_sinh(VALUE); -#if 0 VALUE rb_math_sqrt(VALUE); -#endif /* newline.c */ void Init_newline(void); |