import math


def Gamma2(z: float) -> float:
    """Gamma Function. Gergő Nemes version.

    Gamma(n) == fact(n-1)

    >>> import math
    >>> round(Gamma2(2),1)
    1.0
    >>> round(Gamma2(3),1)
    2.0
    >>> round(Gamma2(4),1)
    6.0
    >>> round(Gamma2(5),1)
    24.0
    >>> round(Gamma2(.5), 7) # Not quite right
    1.7630962
    >>> round(math.sqrt(math.pi), 7)
    1.7724539
    """
    t_1 = math.sqrt(2*math.pi/z)
    t_2 = (z+(1/(12*z-(1/(10*z)))))/math.e
    return t_1*t_2**z