Calculatin file block probability using special functions to prevent
catastrophic cancellation