Hello,

I think I found a bug. Calling .count_ops() on an expression containing a 
derivative raises a NameError.


In [1]: from sympy import *

In [2]: x = Symbol('x')

In [3]: f = Function('f')

In [4]: Dfx = f(x).diff(x)

In [5]: Dfx.count_ops()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)

...

/home/bw/myModules/sympy/core/basic.pyc in count_ops(self=D(f(x), x), 
symbolic=True)
   1009
   1010         """
-> 1011         return Integer(len(self)-1) + 
sum([t.count_ops(symbolic=symbolic) for t in self])
   1012
   1013     def doit(self, **hints):

NameError: global name 'Integer' is not defined


Best regards,
Bastian.

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

Reply via email to