Module: Axiom::Function::Binary::Invertible

Included in:
Connective::Conjunction, Connective::Disjunction, Numeric::Exponentiation, Predicate
Defined in:
lib/axiom/function/binary.rb

Overview

Mixin for invertable binary functions

Instance Method Summary collapse

Instance Method Details

#inverseFunction

Return the inverse function

Examples:

inverse = function.inverse

Returns:



100
101
102
# File 'lib/axiom/function/binary.rb', line 100

def inverse
  self.class.inverse.new(left, right).memoize(:inverse, self)
end