diff options
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r-- | lib/mathn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb index 26dd0b4a27..2257a4074a 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -125,7 +125,7 @@ class Rational def ** (other) if other.kind_of?(Rational) if self < 0 - return Complex(self, 0) ** other + return Complex.new!(self, 0) ** other elsif other == 0 return Rational(1,1) elsif self == 0 |