diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-24 10:27:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-24 10:27:49 +0900 |
| commit | 3deb62d653e23b175e0c7688976f8af776808980 (patch) | |
| tree | b3d61e39337cc0faa8ee5897982637aa893ebe1f /mrbgems/mruby-complex/mrblib | |
| parent | 5573707d7f0ea82fc6fd6335bd23dd9ab6ccbca7 (diff) | |
| download | mruby-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.rb | 9 |
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 |
