fixed piecewise approximation