diff options
Diffstat (limited to 'lib/complex.rb')
| -rw-r--r-- | lib/complex.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/complex.rb b/lib/complex.rb deleted file mode 100644 index 301879143f..0000000000 --- a/lib/complex.rb +++ /dev/null @@ -1,24 +0,0 @@ -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 |
