(divide=False)
Should sympy raise an exception on 0/0 or return a nan?

    divide == True .... raise an exception
    divide == False ... return nan
Should sympy raise an exception on 0/0 or return a nan?
Should sympy raise an exception on 0 / 0 or return a nan?
def seterr(divide=False):
    """
    Should sympy raise an exception on 0/0 or return a nan?

    divide == True .... raise an exception
    divide == False ... return nan
    """
    if _errdict["divide"] != divide:
        clear_cache()
        _errdict["divide"] = divide
def seterr ( divide = False ) : if _errdict [ "divide" ] != divide : clear_cache ( ) _errdict [ "divide" ] = divide