Module: Abst::Ring
- Included in:
- IntegerResidueRing, Polynomial, SquareMatrix
- Defined in:
- lib/include/ring.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#%(other) ⇒ Object
13 14 15 |
# File 'lib/include/ring.rb', line 13 def %(other) return self.divmod(other)[1] end |
#**(e) ⇒ Object
17 18 19 |
# File 'lib/include/ring.rb', line 17 def **(e) return Abst.power(self, e) end |
#/(other) ⇒ Object
9 10 11 |
# File 'lib/include/ring.rb', line 9 def /(other) return self.divmod(other)[0] end |