diff options
Diffstat (limited to 'lib/complex.rb')
| -rw-r--r-- | lib/complex.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/complex.rb b/lib/complex.rb deleted file mode 100644 index c7c1a03b91..0000000000 --- a/lib/complex.rb +++ /dev/null @@ -1,26 +0,0 @@ -# :enddoc: - -require 'cmath' - -unless defined?(Math.exp!) - Object.instance_eval{remove_const :Math} - Math = CMath -end - -def Complex.generic? (other) - other.kind_of?(Integer) || - other.kind_of?(Float) || - other.kind_of?(Rational) -end - -class Complex - - alias image imag - -end - -class Numeric - - def im() Complex(0, self) end - -end |
