diff --git a/lib/mathn.rb b/lib/mathn.rb index c4f5c9e..75fe7ca 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -182,22 +182,3 @@ module Math module_function :sqrt module_function :rsqrt end - -## -# When mathn is required, Float is changed to handle Complex numbers. - -class Float - alias power! ** - - ## - # Exponentiate by +other+ - - def ** (other) - if self < 0 && other.round != other - Complex(self, 0.0) ** other - else - power!(other) - end - end - -end