Calculation of special functions : the gamma function, the exponential integrals and error-like functions