(ctx, x)
return True
Return *True* if *x* is a finite number, i.e. neither
        an infinity or a NaN.

            >>> from sympy.mpmath import *
            >>> isfinite(inf)
            False
            >>> isfinite(-inf)
            False
            >>> isfinite(3)
            True
            >>> isfinite(nan)
            False
            >>> isfinite(3+4j)
            True
            >>> isfinite(mpc(3,inf))
            False
            >>> isfinite(mpc(nan,3))
            False
Return *True* if *x* is a finite number, i.e. neither
        an infinity or a NaN.
Return * True * if * x * is a finite number i . e . neither an infinity or a NaN .
def isfinite(ctx, x):
        """
        Return *True* if *x* is a finite number, i.e. neither
        an infinity or a NaN.

            >>> from sympy.mpmath import *
            >>> isfinite(inf)
            False
            >>> isfinite(-inf)
            False
            >>> isfinite(3)
            True
            >>> isfinite(nan)
            False
            >>> isfinite(3+4j)
            True
            >>> isfinite(mpc(3,inf))
            False
            >>> isfinite(mpc(nan,3))
            False

        """
        if ctx.isinf(x) or ctx.isnan(x):
            return False
        return True
def isfinite ( ctx , x ) : if ctx . isinf ( x ) or ctx . isnan ( x ) : return False return True