diff options
Diffstat (limited to 'lib/complex.rb')
-rw-r--r-- | lib/complex.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/complex.rb b/lib/complex.rb index 1845f30b1f..70e168e912 100644 --- a/lib/complex.rb +++ b/lib/complex.rb @@ -1,7 +1,9 @@ require 'cmath' -Object.instance_eval{remove_const :Math} -Math = CMath +unless defined?(Math.exp!) + Object.instance_eval{remove_const :Math} + Math = CMath +end def Complex.generic? (other) other.kind_of?(Integer) || |