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

Includes:
Adamantium
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

Return the inverse function

Examples:

inverse = function.inverse

Returns:



113
114
115
# File 'lib/axiom/function/unary.rb', line 113

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