def isSympy(val):
    """
    Tests if this is a sympy object.

    Parameters
    ----------
    val: object

    Returns
    -------
    bool
    """
    properties = dir(val)
    return ("is_symbol" in properties) or ("evalf" in properties)