Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/roctave.rb
Instance Method Summary collapse
Instance Method Details
#abs ⇒ Object
121 122 123 |
# File 'lib/roctave.rb', line 121 def abs self.collect(&:abs) end |
#arg ⇒ Object
133 134 135 136 |
# File 'lib/roctave.rb', line 133 def arg #self.collect{|e| e.kind_of?(Complex) ? e.arg : Complex(e).arg} self.collect(&:arg) end |
#conj ⇒ Object
138 139 140 |
# File 'lib/roctave.rb', line 138 def conj self.collect(&:conj) end |
#imag ⇒ Object
129 130 131 |
# File 'lib/roctave.rb', line 129 def imag self.collect(&:imag) end |
#real ⇒ Object
125 126 127 |
# File 'lib/roctave.rb', line 125 def real self.collect(&:real) end |