domain_to_unit: Change a function's inputs to live in [-1, 1]
Description
Given an m dimensional function whose inputs live in bounded intervals [a1, b1], ..., [am, bm], return a wrapped version of the function whose inputs live in [-1, 1], ..., [-1, 1].
Usage
domain_to_unit(f, domain)
Value
A function wrapping f.
Arguments
f
The function to wrap, should have a single vector-valued input.
domain
A list of real tuples, indicating the original domain of the function.