Merge approximate-x functions with interpolation-x to unify api.