2008-04-05 14:25:40 +00:00
|
|
|
require 'cmath'
|
|
|
|
|
2008-04-08 02:01:07 +00:00
|
|
|
Object.instance_eval{remove_const :Math}
|
2008-04-05 14:25:40 +00:00
|
|
|
Math = CMath
|
2008-08-22 12:27:54 +00:00
|
|
|
|
|
|
|
def Complex.generic? (other)
|
|
|
|
other.kind_of?(Integer) ||
|
|
|
|
other.kind_of?(Float) ||
|
|
|
|
other.kind_of?(Rational)
|
|
|
|
end
|