Method: Hornetseye::InternalComplex#-
- Defined in:
- lib/multiarray/complex.rb
#-(other) ⇒ Object
119 120 121 122 123 124 125 126 127 128 |
# File 'lib/multiarray/complex.rb', line 119 def -( other ) if other.is_a?( InternalComplex ) or other.is_a?( Complex ) InternalComplex.new @real - other.real, @imag - other.imag elsif InternalComplex.generic? other InternalComplex.new @real - other, @imag else x, y = other.coerce self x - y end end |