aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mathn.rb2
-rw-r--r--lib/rational.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb
index cd4c6ef9e9..bab9083c78 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -10,8 +10,8 @@
#
#
-require "rational.rb"
require "complex.rb"
+require "rational.rb"
require "matrix.rb"
class Integer
diff --git a/lib/rational.rb b/lib/rational.rb
index 0c784fb94b..a0f0b06f8b 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -329,7 +329,7 @@ class Integer
end
class Fixnum
- if not defined? Complex
+ unless defined? Complex
alias power! **;
end
@@ -347,13 +347,13 @@ class Fixnum
end
end
- if not defined? Complex
+ unless defined? Complex
alias ** rpower
end
end
class Bignum
- if not defined? power!
+ unless defined? Complex
alias power! **
end
@@ -371,7 +371,7 @@ class Bignum
end
end
- if not defined? Complex
+ unless defined? Complex
alias ** rpower
end
end