mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* complex.c: uses f_(in)?exact_p macro.
* rational.c: ditto. * bignum.c (rb_big_pow): bignum**bignum - should calculate without rational. * lib/complex.rb: should override Math module at most once. * lib/mathn.rb: requires 'cmath' directly. -この行以下は無視されます -- M complex.c M ChangeLog M lib/mathn.rb M lib/complex.rb M bignum.c M rational.c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
396650e0bd
commit
f2cb79ffee
6 changed files with 40 additions and 19 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue