blob: 1845f30b1f01ea894a2442257da43b006f423ab5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
require 'cmath'
Object.instance_eval{remove_const :Math}
Math = CMath
def Complex.generic? (other)
other.kind_of?(Integer) ||
other.kind_of?(Float) ||
other.kind_of?(Rational)
end
|