Module: Algebra::Field

Includes:
Ring
Defined in:
lib/y_support/abstract_algebra.rb

Overview

A field is a ring that can do division.

Instance Method Summary collapse

Methods included from Ring

#*, #one

Methods included from Group

#-, #-@

Methods included from Monoid

#+, included

Instance Method Details

#/(divisor) ⇒ Object



76
# File 'lib/y_support/abstract_algebra.rb', line 76

def / divisor; multiply divisor.multiplicative_inverse end

#inverseObject



75
# File 'lib/y_support/abstract_algebra.rb', line 75

def inverse; multiplicative_inverse end