Improving approximation by switching between two error functions - Kaljun, David (Array, 2017)