Module: Axiom::Function::Unary::Invertible

Included in:
Connective::Negation
Defined in:
lib/axiom/function/unary.rb

Overview

Mixin for invertable unary functions

Instance Method Summary collapse

Instance Method Details

#inverseFunction

TODO:

move this to classes that use it

Return the inverse function

Examples:

inverse = function.inverse

Returns:



117
118
119
# File 'lib/axiom/function/unary.rb', line 117

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