summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'math.c')
-rw-r--r--math.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/math.c b/math.c
index ebe14ee5c4..6beb8a61b5 100644
--- a/math.c
+++ b/math.c
@@ -3,7 +3,7 @@
math.c -
$Author: matz $
- $Date: 1994/06/17 14:23:50 $
+ $Date: 1994/08/12 04:47:35 $
created at: Tue Jan 25 14:12:56 JST 1994
Copyright (C) 1994 Yukihiro Matsumoto
@@ -110,13 +110,15 @@ Init_Math()
{
M_Math = rb_define_module("Math");
- rb_define_mfunc(M_Math, "atan2", Fmath_atan2, 2);
- rb_define_mfunc(M_Math, "cos", Fmath_cos, 1);
- rb_define_mfunc(M_Math, "sin", Fmath_sin, 1);
- rb_define_mfunc(M_Math, "tan", Fmath_tan, 1);
+ rb_define_method(M_Math, "atan2", Fmath_atan2, 2);
+ rb_define_method(M_Math, "cos", Fmath_cos, 1);
+ rb_define_method(M_Math, "sin", Fmath_sin, 1);
+ rb_define_method(M_Math, "tan", Fmath_tan, 1);
- rb_define_mfunc(M_Math, "exp", Fmath_exp, 1);
- rb_define_mfunc(M_Math, "log", Fmath_log, 1);
- rb_define_mfunc(M_Math, "log10", Fmath_log10, 1);
- rb_define_mfunc(M_Math, "sqrt", Fmath_sqrt, 1);
+ rb_define_method(M_Math, "exp", Fmath_exp, 1);
+ rb_define_method(M_Math, "log", Fmath_log, 1);
+ rb_define_method(M_Math, "log10", Fmath_log10, 1);
+ rb_define_method(M_Math, "sqrt", Fmath_sqrt, 1);
+
+ rb_include_module(CLASS_OF(M_Math), M_Math);
}