Experiments with using cubics to approximate curves.

Not satisfied with the results. Need to work on the math.
Would like min's amd max's of curves to correspond to the high and low
points of the the graph. But the curves want to overshoot. Tried setting
the first deratives to 0 but that end up in lots of dicontinuties.