Function approximation by deep networks