summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-complex/mrblib
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-complex/mrblib')
-rw-r--r--mrbgems/mruby-complex/mrblib/complex.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/mrbgems/mruby-complex/mrblib/complex.rb b/mrbgems/mruby-complex/mrblib/complex.rb
index 105c56d40..cd000a6c6 100644
--- a/mrbgems/mruby-complex/mrblib/complex.rb
+++ b/mrbgems/mruby-complex/mrblib/complex.rb
@@ -19,22 +19,6 @@ class Complex < Numeric
Complex(-real, -imaginary)
end
- def +(rhs)
- if rhs.is_a? Complex
- Complex(real + rhs.real, imaginary + rhs.imaginary)
- elsif rhs.is_a? Numeric
- Complex(real + rhs, imaginary)
- end
- end
-
- def -(rhs)
- if rhs.is_a? Complex
- Complex(real - rhs.real, imaginary - rhs.imaginary)
- elsif rhs.is_a? Numeric
- Complex(real - rhs, imaginary)
- end
- end
-
def abs
Math.hypot imaginary, real
end