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

Included in:
Connective::Negation, Numeric::SquareRoot
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:



129
130
131
# File 'lib/axiom/function/unary.rb', line 129

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