def calc_g(r, aa):
    """
    DESCRIPTION TBD (FUNCTION USED IN GENERAL CONSTANTS).

    Parameters:
        r (float): radius
        aa (float): spin parameter (0, 1)

    Returns:
        g (float)
    """
    return 2 * aa * r