SMS: Approximation of functions