def _set_square(mul, square):
    """
    Set square if square is None
    (for the initialization of methods for powering)
    """
    if square == None:
        return lambda x : mul(x, x)
    else:
        return square