Taylor approximation of a function