This apparently isn't widely supported. The only one I found was doit(integrals=False) disables integrals. It probably ought to use the syntax you suggest.
Aaron Meurer On Wed, Oct 21, 2015 at 9:17 PM, Dzhelil Rufat <[email protected]> wrote: > The documentation says: > > doit(**hints) > > 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. -- 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/CAKgW%3D6%2BfDNNMY-JvoDVV-sY5-fBd88wJGvRDVFZzC%2BpCAAHXxQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
