Comment #29 on issue 1823 by smi...@gmail.com: integral.atoms(Symbol) should introspect
http://code.google.com/p/sympy/issues/detail?id=1823

It just has to introspect, I think. Changes have been made in
[ https://github.com/sympy/sympy/pull/44 ]. See the final commit and the early commit titled "free_symbols,..."

    h[1] >>> i=Sum(Sum(y,(y,1,2))+Sum(x**n, (n, 0, oo)), (x, 0, .5))
    h[1] >>> i.function
    Sum(y, (y, 1, 2)) + Sum(x**n, (n, 0, oo))
    h[2] >>> i.variables
    [x]
    h[3] >>> i.symbols
    set([n, x, y])
    h[4] >>> i.free_symbols
    set([])
    h[5] >>> i.bound_symbols
    set([n, x, y])

Note: Order and Derivative are slightly different than Integral and Sum in that they use obj.expr and obj.vars (instead of previous .symbols) rather than obj.function and obj.variables. Also, vars returns a tuple whereas variables returns a list. Any recommendations on whether and in which direction these should be unified?

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to