* 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
This commit is contained in:
parent
faa92cde0d
commit
6f74ab1d97
@ -1,3 +1,8 @@
|
|||||||
|
Fri Aug 22 12:21:46 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
|
* lib/complex.rb: removed deprecated library.
|
||||||
|
* lib/rational.rb: ditto.
|
||||||
|
|
||||||
Fri Aug 22 11:38:49 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
Fri Aug 22 11:38:49 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
* lib/prettyprint.rb: removed PrettyPrint#first?
|
* lib/prettyprint.rb: removed PrettyPrint#first?
|
||||||
|
6
NEWS
6
NEWS
@ -134,6 +134,12 @@ with all sufficient information, see the ChangeLog file.
|
|||||||
* Time.httpdate produces always UTC Time object.
|
* Time.httpdate produces always UTC Time object.
|
||||||
* Time.strptime raises ArgumentError when no date information.
|
* Time.strptime raises ArgumentError when no date information.
|
||||||
|
|
||||||
|
* lib/rational.rb
|
||||||
|
* Removed because it is deprecated from 2009.
|
||||||
|
|
||||||
|
* lib/complex.rb
|
||||||
|
* Removed because it is deprecated from 2009.
|
||||||
|
|
||||||
* lib/prettyprint.rb
|
* lib/prettyprint.rb
|
||||||
* Removed PrettyPrint#first?
|
* Removed PrettyPrint#first?
|
||||||
|
|
||||||
|
@ -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
|
|
@ -1,23 +0,0 @@
|
|||||||
# :enddoc:
|
|
||||||
|
|
||||||
warn('lib/rational.rb is deprecated') if $VERBOSE
|
|
||||||
|
|
||||||
class Fixnum
|
|
||||||
|
|
||||||
alias quof fdiv
|
|
||||||
alias rdiv quo
|
|
||||||
|
|
||||||
alias power! ** unless method_defined? :power!
|
|
||||||
alias rpower **
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
class Bignum
|
|
||||||
|
|
||||||
alias quof fdiv
|
|
||||||
alias rdiv quo
|
|
||||||
|
|
||||||
alias power! ** unless method_defined? :power!
|
|
||||||
alias rpower **
|
|
||||||
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user