import interpol.spline.linear.do as do import numpy as np x = np.arange(0, 4, 0.3) y = np.cos(x) ip = do.InterPolator(x, y)