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

.included(base) ⇒ Object



3
4
5
6
7
# File 'lib/include/ring.rb', line 3

def self.included(base)
	base.class_eval do
		include Abst::Group
	end
end

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