math library for the time-based AMM curve. the library uses an interface for the number implementation, so that different number libraries can be swapped out.