diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 03:21:55 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 03:21:55 +0000 |
commit | 6f74ab1d977e492c99f96f665243c48180b7bccb (patch) | |
tree | 3d39e8534a7d8a05e5e78c6e4aecade39ce08bdc /lib/complex.rb | |
parent | faa92cde0d02c989a94c44b7062d8b8c56884ac0 (diff) |
* lib/complex.rb: removed deprecated library.
* lib/rational.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/complex.rb')
-rw-r--r-- | lib/complex.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/complex.rb b/lib/complex.rb deleted file mode 100644 index 9c57ecdf7a..0000000000 --- a/lib/complex.rb +++ /dev/null @@ -1,28 +0,0 @@ -# :enddoc: - -warn('lib/complex.rb is deprecated') if $VERBOSE - -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 |