summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-complex/mrblib/complex.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-24 09:53:39 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-24 09:53:39 +0900
commit5573707d7f0ea82fc6fd6335bd23dd9ab6ccbca7 (patch)
treed16419f669cec75438b60957939fd5c497428bee /mrbgems/mruby-complex/mrblib/complex.rb
parentdc5d74dda8432bcc1e9dfce73c722f6259aeb08a (diff)
downloadmruby-5573707d7f0ea82fc6fd6335bd23dd9ab6ccbca7.tar.gz
mruby-5573707d7f0ea82fc6fd6335bd23dd9ab6ccbca7.zip
complex.c: implement `Complex#*` in C.
Diffstat (limited to 'mrbgems/mruby-complex/mrblib/complex.rb')
-rw-r--r--mrbgems/mruby-complex/mrblib/complex.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/mrbgems/mruby-complex/mrblib/complex.rb b/mrbgems/mruby-complex/mrblib/complex.rb
index 6372d36f6..f07cb4ba5 100644
--- a/mrbgems/mruby-complex/mrblib/complex.rb
+++ b/mrbgems/mruby-complex/mrblib/complex.rb
@@ -35,14 +35,6 @@ class Complex < Numeric
end
end
- def *(rhs)
- if rhs.is_a? Complex
- Complex(real * rhs.real - imaginary * rhs.imaginary, real * rhs.imaginary + rhs.real * imaginary)
- elsif rhs.is_a? Numeric
- Complex(real * rhs, imaginary * rhs)
- end
- end
-
def /(rhs)
if rhs.is_a? Complex
__div__(rhs)