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.doitWhat 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