Module: DeepDouble

Defined in:
lib/deep_double/literal.rb,
lib/deep_double.rb,
lib/deep_double/version.rb,
lib/deep_double/function.rb,
lib/deep_double/recursive_function.rb,
lib/deep_double/function/validate_result_table.rb

Overview

A “function” in the mathematical sense: a mapping of input values to output values. This (argument -> value) mapping is specified by a “result_table” – just an ordinary ruby hash – passed to the constructor.

If the return value is itself a hash, it’s interpreted as the definition of another double, and so another ‘DeepDouble` instance is returned.

Defined Under Namespace

Classes: Double, Function, Literal, RecursiveFunction

Constant Summary collapse

VERSION =
"0.1.0"