Hello,

import sympy as sp

In the following example code, it is not clear to me why the first 
expression returns
expr.atoms(sp.S(1)) {1}

whereas the second expression returns
expr.atoms(sp.S(1)) set()

def main():

    x = sp.symbols('x')

    expr = x + 1
    print(f'expr.atoms(sp.S(1)) {expr.atoms(sp.S(1))}')

    expr = x - 1
    print(f'expr.atoms(sp.S(1)) {expr.atoms(sp.S(1))}')


if __name__ == "__main__":
    main()


-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/bcd40bf3-44aa-4297-a218-2c71aadd3682n%40googlegroups.com.

Reply via email to