aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-12 14:13:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-12 14:13:46 +0000
commit6967900fd910a767bbe7804ec4f21b027cedd735 (patch)
tree30b7be7a49a2c78b48488a0ceb58fd1530000ce5 /internal.h
parenta395aca709c9a9ffa73b7f69071a540672005973 (diff)
downloadruby-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.h4
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);