summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-complex/mrblib
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-24 10:27:49 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-24 10:27:49 +0900
commit3deb62d653e23b175e0c7688976f8af776808980 (patch)
treeb3d61e39337cc0faa8ee5897982637aa893ebe1f /mrbgems/mruby-complex/mrblib
parent5573707d7f0ea82fc6fd6335bd23dd9ab6ccbca7 (diff)
downloadmruby-3deb62d653e23b175e0c7688976f8af776808980.tar.gz
mruby-3deb62d653e23b175e0c7688976f8af776808980.zip
complex.c: implement `Complex#/` and `#quo` in C.
Diffstat (limited to 'mrbgems/mruby-complex/mrblib')
-rw-r--r--mrbgems/mruby-complex/mrblib/complex.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/mrbgems/mruby-complex/mrblib/complex.rb b/mrbgems/mruby-complex/mrblib/complex.rb
index f07cb4ba5..105c56d40 100644
--- a/mrbgems/mruby-complex/mrblib/complex.rb
+++ b/mrbgems/mruby-complex/mrblib/complex.rb
@@ -35,15 +35,6 @@ class Complex < Numeric
end
end
- def /(rhs)
- if rhs.is_a? Complex
- __div__(rhs)
- elsif rhs.is_a? Numeric
- Complex(real / rhs, imaginary / rhs)
- end
- end
- alias_method :quo, :/
-
def abs
Math.hypot imaginary, real
end