One can also do (inf, alpha * m / (alpha - 1.))[alpha > 1] if that is clearer.