The documentation says:

doit(***hints*) 
<http://docs.sympy.org/0.7.1/_modules/sympy/core/basic.html#Basic.doit>

Evaluate objects that are not evaluated by default like limits, integrals, 
sums and products. All objects of this kind will be evaluated recursively, 
unless *some species were excluded* via ‘hints’ or unless the ‘deep’ hint 
was set to ‘False’.

http://docs.sympy.org/0.7.1/modules/core.html#sympy.core.basic.Basic.doit

What is the correct way to exclude things from being processed in doit? Say 
in the expressions below

expr = ( Sum(k, (k, 0, 10)) + Integral(x, (x, 0, 2) ).doit()

I want doit to evaluate only the Integral and not the Sum. So that the 
result is equivalent to 

expr = ( Sum(k, (k, 0, 10)) + Integral(x, (x, 0, 2).doit() )

Is there a way to do that? 

Trying the obvious

expr.doit(Sum=False) 

does not work. 

Dzhelil

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/556c7f9c-c15f-4db8-861d-c2425277c61f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to