(cls, arg)
return max(l)
Decide if the function should automatically evalf().

        By default (in this implementation), this happens if (and only if) the
        ARG is a floating point number.
        This function is used by __new__.
Decide if the function should automatically evalf().
Decide if the function should automatically evalf () .
def _should_evalf(cls, arg):
        """
        Decide if the function should automatically evalf().

        By default (in this implementation), this happens if (and only if) the
        ARG is a floating point number.
        This function is used by __new__.
        """
        if arg.is_Float:
            return arg._prec
        if not arg.is_Add:
            return -1
        re, im = arg.as_real_imag()
        l = [a._prec for a in [re, im] if a.is_Float]
        l.append(-1)
        return max(l)
def _should_evalf ( cls , arg ) : if arg . is_Float : return arg . _prec if not arg . is_Add : return - 1 re , im = arg . as_real_imag ( ) l = [ a . _prec for a in [ re , im ] if a . is_Float ] l . append ( - 1 ) return max ( l )